From: J. Eric Ivancich Date: Tue, 26 May 2020 15:06:56 +0000 (-0400) Subject: rgw: remove unused function obj_force_ns X-Git-Tag: wip-pdonnell-testing-20200918.022351~1175^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=9a1e89173d398bf6e39a431d4b4ef9ab1f20e2bb;p=ceph-ci.git rgw: remove unused function obj_force_ns Removing the function eliminates a compiler warning. Signed-off-by: J. Eric Ivancich --- diff --git a/src/rgw/rgw_orphan.cc b/src/rgw/rgw_orphan.cc index ce4f5f69ac0..228ed95d419 100644 --- a/src/rgw/rgw_orphan.cc +++ b/src/rgw/rgw_orphan.cc @@ -59,30 +59,6 @@ static string obj_fingerprint(const string& oid, const char *force_ns = NULL) return s.substr(0, i + 1); } - -static string obj_force_ns(const string& oid, const char *force_ns) -{ - ssize_t pos = oid.find('_'); - if (pos < 0) { - cerr << "ERROR: object does not have a bucket marker: " << oid << std::endl; - } - - string obj_marker = oid.substr(0, pos); - - rgw_obj_key obj; - rgw_obj_key::parse_raw_oid(oid.substr(pos + 1), &obj); - - if (obj.ns.empty()) { - return oid; - } - - obj.set_ns(force_ns); - - string s = obj_marker + obj.get_oid(); - - return s; -} - int RGWOrphanStore::read_job(const string& job_name, RGWOrphanSearchState & state) { set keys;