From: Patrick Donnelly Date: Tue, 18 Feb 2020 15:48:01 +0000 (-0800) Subject: mds: remove dead get_commands code X-Git-Tag: v15.1.1~375^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F33390%2Fhead;p=ceph.git mds: remove dead get_commands code Left over from #31255, d8c0bde04b88cb3ad96855bd0948ae10072c9da7. Signed-off-by: Patrick Donnelly --- diff --git a/src/mds/MDSDaemon.cc b/src/mds/MDSDaemon.cc index 186712909ea..3a7e08c86a3 100644 --- a/src/mds/MDSDaemon.cc +++ b/src/mds/MDSDaemon.cc @@ -634,13 +634,6 @@ void MDSDaemon::handle_command(const cref_t &m) m->get_connection()->send_message2(reply); } -const std::vector& MDSDaemon::get_commands() -{ - static const std::vector commands = { - }; - return commands; -}; - void MDSDaemon::handle_mds_map(const cref_t &m) { version_t epoch = m->get_epoch(); diff --git a/src/mds/MDSDaemon.h b/src/mds/MDSDaemon.h index 265a82f6515..7024d94c580 100644 --- a/src/mds/MDSDaemon.h +++ b/src/mds/MDSDaemon.h @@ -139,17 +139,8 @@ class MDSDaemon : public Dispatcher { // tick and other timer fun Context *tick_event = nullptr; class MDSSocketHook *asok_hook = nullptr; - private: - struct MDSCommand { - MDSCommand(std::string_view signature, std::string_view help) - : cmdstring(signature), helpstring(help) - {} - - std::string cmdstring; - std::string helpstring; - std::string module = "mds"; - }; + private: bool ms_dispatch2(const ref_t &m) override; int ms_handle_authentication(Connection *con) override; void ms_handle_accept(Connection *con) override; @@ -158,8 +149,6 @@ class MDSDaemon : public Dispatcher { void ms_handle_remote_reset(Connection *con) override; bool ms_handle_refused(Connection *con) override; - static const std::vector& get_commands(); - bool parse_caps(const AuthCapsInfo&, MDSAuthCaps&); mono_time starttime = mono_clock::zero();