From 5d6d22997a1364f5ba3b167c9d34c96ed0201c2b Mon Sep 17 00:00:00 2001 From: Luo Kexue Date: Mon, 7 Aug 2017 16:21:16 +0800 Subject: [PATCH] Common: remove variable 'argnum' that is modified but its new value is never used. Signed-off-by: Luo Kexue --- src/common/cmdparse.cc | 2 -- 1 file changed, 2 deletions(-) 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); -- 2.39.5