]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: Remove unused variables
authorAdam C. Emerson <aemerson@redhat.com>
Tue, 6 Apr 2021 19:19:06 +0000 (15:19 -0400)
committersinguliere <singuliere@autistici.org>
Fri, 9 Apr 2021 05:57:55 +0000 (07:57 +0200)
(Also mark the file as C++ rather than C)

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
(cherry picked from commit ce91460884934bfdda13966a302500e9e572fffe)

src/rgw/rgw_crypt.cc

index df0111afebbcd3d61894eac4ba0d17cb646d9de7..1d00ca6f6c79cddd819df5fca550bb3095028fd0 100644 (file)
@@ -1,4 +1,4 @@
-// -*- mode:C; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
+// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
 // vim: ts=8 sw=2 smarttab ft=cpp
 
 /**
@@ -110,8 +110,6 @@ sort_and_write(rapidjson::Value &d, H &writer, canonical_char_sorter<MyMember>&
     } cmp_functor{ccs};
         if (!(r = writer.StartObject()))
             break;
-        const auto &o{d.GetObject()};
-        auto b{o.begin()},e{o.end()};
         std::vector<MyMember*> q;
         for (auto &m: d.GetObject())
             q.push_back(&m);