]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
common/admin_socket: remove dead code
authorJohn Spray <john.spray@redhat.com>
Tue, 24 Jun 2014 15:27:05 +0000 (08:27 -0700)
committerJohn Spray <john.spray@redhat.com>
Mon, 14 Jul 2014 13:12:36 +0000 (14:12 +0100)
Signed-off-by: John Spray <john.spray@redhat.com>
src/common/admin_socket.cc

index 4af2904ef3ec4312f6647246cd682603f760fd6a..24d165671c484e1970036e5fecd4cbf94fa21868 100644 (file)
@@ -334,12 +334,6 @@ bool AdminSocket::do_accept()
     format = "json-pretty";
   cmd_getval(m_cct, cmdmap, "prefix", c);
 
-  string firstword;
-  if (c.find(" ") == string::npos)
-    firstword = c;
-  else
-    firstword = c.substr(0, c.find(" "));
-
   m_lock.Lock();
   map<string,AdminSocketHook*>::iterator p;
   string match = c;