From: Luo Kexue Date: Mon, 7 Aug 2017 08:21:16 +0000 (+0800) Subject: Common: remove variable 'argnum' that is modified but its new value is never used. X-Git-Tag: v12.1.3~50^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F16862%2Fhead;p=ceph.git Common: remove variable 'argnum' that is modified but its new value is never used. Signed-off-by: Luo Kexue --- diff --git a/src/common/cmdparse.cc b/src/common/cmdparse.cc index 592b889b459..9a873f51442 100644 --- a/src/common/cmdparse.cc +++ b/src/common/cmdparse.cc @@ -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);