From: huanwen ren Date: Thu, 4 Feb 2016 10:00:02 +0000 (+0800) Subject: mon: get_leader_supported_commands is unused X-Git-Tag: v10.1.0~371^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0cef323931816f0699e228be456dbfaa2bb43188;p=ceph.git mon: get_leader_supported_commands is unused get_leader_supported_commands is unused, delete it Signed-off-by: huanwen ren --- diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index 3ada8222cc94..9afccd723be6 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -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; diff --git a/src/mon/Monitor.h b/src/mon/Monitor.h index d506ebad3643..b1ea51d4f2e9 100644 --- a/src/mon/Monitor.h +++ b/src/mon/Monitor.h @@ -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();