From ce91460884934bfdda13966a302500e9e572fffe Mon Sep 17 00:00:00 2001 From: "Adam C. Emerson" Date: Tue, 6 Apr 2021 15:19:06 -0400 Subject: [PATCH] rgw: Remove unused variables (Also mark the file as C++ rather than C) Signed-off-by: Adam C. Emerson --- src/rgw/rgw_crypt.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/rgw/rgw_crypt.cc b/src/rgw/rgw_crypt.cc index df0111afebbcd..1d00ca6f6c79c 100644 --- a/src/rgw/rgw_crypt.cc +++ b/src/rgw/rgw_crypt.cc @@ -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& } cmp_functor{ccs}; if (!(r = writer.StartObject())) break; - const auto &o{d.GetObject()}; - auto b{o.begin()},e{o.end()}; std::vector q; for (auto &m: d.GetObject()) q.push_back(&m); -- 2.39.5