]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/MgrClient: remove unused cond signal helpers
authorSage Weil <sage@redhat.com>
Tue, 28 Feb 2017 15:34:33 +0000 (09:34 -0600)
committerSage Weil <sage@redhat.com>
Wed, 29 Mar 2017 15:39:25 +0000 (11:39 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/mgr/MgrClient.cc
src/mgr/MgrClient.h

index a1dadc884fe080bfa5dacaafc52bd103195bfa7f..49d752054c16e8e9bcf716fdd23db667402276b1 100644 (file)
@@ -255,22 +255,6 @@ bool MgrClient::handle_mgr_configure(MMgrConfigure *m)
   return true;
 }
 
-void MgrClient::wait_on_list(list<Cond*>& ls)
-{
-  assert(lock.is_locked_by_me());
-
-  Cond cond;
-  ls.push_back(&cond);
-  cond.Wait(lock);
-  ls.remove(&cond);
-}
-
-void MgrClient::signal_cond_list(list<Cond*>& ls)
-{
-  for (list<Cond*>::iterator it = ls.begin(); it != ls.end(); ++it)
-    (*it)->Signal();
-}
-
 int MgrClient::start_command(const vector<string>& cmd, const bufferlist& inbl,
                   bufferlist *outbl, string *outs,
                   Context *onfinish)
index a97de3c94db7efdb031546ce74b2e19b645a1f4c..4190a58ea79af68cfd3c8eba53bb612468b36f71 100644 (file)
@@ -63,9 +63,6 @@ protected:
 
   CommandTable<MgrCommand> command_table;
 
-  void wait_on_list(list<Cond*>& ls);
-  void signal_cond_list(list<Cond*>& ls);
-
   Context *report_callback;
 
   // If provided, use this to compose an MPGStats to send with