]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: cleanup dead init_bucket 5556/head
authorPete Zaitcev <zaitcev@kotori.zaitcev.us>
Wed, 12 Aug 2015 21:37:27 +0000 (15:37 -0600)
committerPete Zaitcev <zaitcev@kotori.zaitcev.us>
Thu, 13 Aug 2015 16:29:10 +0000 (10:29 -0600)
Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>
src/rgw/rgw_bucket.cc

index c3aab8e86aedd91cf5491148cdaa06b5043b41a9..cfa5e204a44d8c2bbbf590e824717c34fdb587e5 100644 (file)
@@ -1523,19 +1523,6 @@ public:
 
 class RGWBucketMetadataHandler : public RGWMetadataHandler {
 
-  int init_bucket(RGWRados *store, string& bucket_name, rgw_bucket& bucket, RGWObjVersionTracker *objv_tracker) {
-    RGWBucketInfo bucket_info;
-    RGWObjectCtx obj_ctx(store);
-    int r = store->get_bucket_info(obj_ctx, bucket_name, bucket_info, NULL);
-    if (r < 0) {
-      cerr << "could not get bucket info for bucket=" << bucket_name << std::endl;
-      return r;
-    }
-    bucket = bucket_info.bucket;
-
-    return 0;
-  }
-
 public:
   string get_type() { return "bucket"; }
 
@@ -1685,19 +1672,6 @@ public:
 
 class RGWBucketInstanceMetadataHandler : public RGWMetadataHandler {
 
-  int init_bucket(RGWRados *store, string& bucket_name, rgw_bucket& bucket, RGWObjVersionTracker *objv_tracker) {
-    RGWBucketInfo bucket_info;
-    RGWObjectCtx obj_ctx(store);
-    int r = store->get_bucket_info(obj_ctx, bucket_name, bucket_info, NULL);
-    if (r < 0) {
-      cerr << "could not get bucket info for bucket=" << bucket_name << std::endl;
-      return r;
-    }
-    bucket = bucket_info.bucket;
-
-    return 0;
-  }
-
 public:
   string get_type() { return "bucket.instance"; }