]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: get_leader_supported_commands is unused 7520/head
authorhuanwen ren <ren.huanwen@zte.com.cn>
Thu, 4 Feb 2016 10:00:02 +0000 (18:00 +0800)
committerhuanwen ren <ren.huanwen@zte.com.cn>
Fri, 5 Feb 2016 07:19:05 +0000 (15:19 +0800)
get_leader_supported_commands is unused, delete it

Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
src/mon/Monitor.cc
src/mon/Monitor.h

index 3ada8222cc94eb2fc54508ce3036acc9b06ee69a..9afccd723be6e92d2b621f71304e0e13f68d3984 100644 (file)
@@ -2536,11 +2536,6 @@ void Monitor::get_locally_supported_monitor_commands(const MonCommand **cmds,
   *cmds = mon_commands;
   *count = ARRAY_SIZE(mon_commands);
 }
-void Monitor::get_leader_supported_commands(const MonCommand **cmds, int *count)
-{
-  *cmds = leader_supported_mon_commands;
-  *count = leader_supported_mon_commands_size;
-}
 void Monitor::get_classic_monitor_commands(const MonCommand **cmds, int *count)
 {
   *cmds = classic_mon_commands;
index d506ebad36433808e6cbc561ca348dbdd07bd2a1..b1ea51d4f2e94c3b9945cc0ec4200375c410b769 100644 (file)
@@ -964,7 +964,6 @@ public:
                                          bufferlist *rdata);
   void get_locally_supported_monitor_commands(const MonCommand **cmds, int *count);
   void get_classic_monitor_commands(const MonCommand **cmds, int *count);
-  void get_leader_supported_commands(const MonCommand **cmds, int *count);
   /// the Monitor owns this pointer once you pass it in
   void set_leader_supported_commands(const MonCommand *cmds, int size);
   static bool is_keyring_required();