From 3d088e04f03df295415c5a9ec6d4ba6fa06112b7 Mon Sep 17 00:00:00 2001 From: Bingyin Zhang Date: Fri, 24 Nov 2017 21:55:00 +0800 Subject: [PATCH] rgw: remove unused param in get_bucket_instance_policy_from_attr Signed-off-by: Bingyin Zhang --- src/rgw/rgw_op.cc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc index 73aa0ed5437..92c8e5c4767 100644 --- a/src/rgw/rgw_op.cc +++ b/src/rgw/rgw_op.cc @@ -175,8 +175,7 @@ static int get_bucket_instance_policy_from_attr(CephContext *cct, RGWRados *store, RGWBucketInfo& bucket_info, map& bucket_attrs, - RGWAccessControlPolicy *policy, - rgw_raw_obj& obj) + RGWAccessControlPolicy *policy) { map::iterator aiter = bucket_attrs.find(RGW_ATTR_ACL); @@ -243,10 +242,7 @@ static int get_bucket_policy_from_attr(CephContext *cct, map& bucket_attrs, RGWAccessControlPolicy *policy) { - rgw_raw_obj instance_obj; - store->get_bucket_instance_obj(bucket_info.bucket, instance_obj); - return get_bucket_instance_policy_from_attr(cct, store, bucket_info, bucket_attrs, - policy, instance_obj); + return get_bucket_instance_policy_from_attr(cct, store, bucket_info, bucket_attrs, policy); } static optional get_iam_policy_from_attr(CephContext* cct,