]> git.apps.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)
committerAdam C. Emerson <aemerson@redhat.com>
Wed, 7 Apr 2021 17:29:08 +0000 (13:29 -0400)
(Also mark the file as C++ rather than C)

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
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);