]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
LFNIndex: remove redundant local variable 'obj'. 6333/head
authorxiexingguo <258156334@qq.com>
Wed, 21 Oct 2015 06:08:04 +0000 (14:08 +0800)
committerxiexingguo <258156334@qq.com>
Wed, 21 Oct 2015 23:28:48 +0000 (07:28 +0800)
local variable 'obj' in LFNIndex::list_subdirs() never used and shall be removed.
Fixes: #13552
Signed-off-by: xie.xingguo@zte.com.cn
src/os/LFNIndex.cc

index 48d8db37e838f4ad730cbf9e485ed2b814dc3452..90837b6702c87772df699b0d291b4f0b9a712842 100644 (file)
@@ -467,7 +467,6 @@ int LFNIndex::list_subdirs(const vector<string> &to_list,
     }
     string short_name(de->d_name);
     string demangled_name;
-    ghobject_t obj;
     if (lfn_is_subdir(short_name, &demangled_name)) {
       out->push_back(demangled_name);
     }