]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: remove dead get_commands code 33390/head
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 18 Feb 2020 15:48:01 +0000 (07:48 -0800)
committerPatrick Donnelly <pdonnell@redhat.com>
Tue, 18 Feb 2020 15:49:45 +0000 (07:49 -0800)
Left over from #31255, d8c0bde04b88cb3ad96855bd0948ae10072c9da7.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/mds/MDSDaemon.cc
src/mds/MDSDaemon.h

index 186712909ea5d9f6b47c32ebb3915f57cdeeec9d..3a7e08c86a3948842683d2783d7a349a912be056 100644 (file)
@@ -634,13 +634,6 @@ void MDSDaemon::handle_command(const cref_t<MCommand> &m)
   m->get_connection()->send_message2(reply);
 }
 
-const std::vector<MDSDaemon::MDSCommand>& MDSDaemon::get_commands()
-{
-  static const std::vector<MDSCommand> commands = {
-  };
-  return commands;
-};
-
 void MDSDaemon::handle_mds_map(const cref_t<MMDSMap> &m)
 {
   version_t epoch = m->get_epoch();
index 265a82f65152cdb7d461c4750e09745cca2b2b9f..7024d94c580a50000ed19474a90da597c2aa5a23 100644 (file)
@@ -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<Message> &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<MDSCommand>& get_commands();
-
   bool parse_caps(const AuthCapsInfo&, MDSAuthCaps&);
 
   mono_time starttime = mono_clock::zero();