From 9a1e89173d398bf6e39a431d4b4ef9ab1f20e2bb Mon Sep 17 00:00:00 2001 From: "J. Eric Ivancich" Date: Tue, 26 May 2020 11:06:56 -0400 Subject: [PATCH] rgw: remove unused function obj_force_ns Removing the function eliminates a compiler warning. Signed-off-by: J. Eric Ivancich --- src/rgw/rgw_orphan.cc | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/src/rgw/rgw_orphan.cc b/src/rgw/rgw_orphan.cc index ce4f5f69ac01a..228ed95d419b6 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; -- 2.39.5