]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Common: remove variable 'argnum' that is modified but its new value is never used. 16862/head
authorLuo Kexue <luo.kexue@zte.com.cn>
Mon, 7 Aug 2017 08:21:16 +0000 (16:21 +0800)
committerLuo Kexue <luo.kexue@zte.com.cn>
Mon, 7 Aug 2017 08:21:16 +0000 (16:21 +0800)
Signed-off-by: Luo Kexue <luo.kexue@zte.com.cn>
src/common/cmdparse.cc

index 592b889b4597f83ab3decc9a162f75da1aba5c47..9a873f5144216e8cde871a4aa6c98e46eda246b7 100644 (file)
@@ -55,12 +55,10 @@ dump_cmd_to_json(Formatter *f, const string& cmd)
   // elements are: "name", meaning "the typeless name that means a literal"
   // an object {} with key:value pairs representing an argument
 
-  int argnum = 0;
   stringstream ss(cmd);
   std::string word;
 
   while (std::getline(ss, word, ' ')) {
-    argnum++;
     // if no , or =, must be a plain word to put out
     if (word.find_first_of(",=") == string::npos) {
       f->dump_string("arg", word);