From 16dd6a426b100698b2ddbbe9aa9bdde94188b145 Mon Sep 17 00:00:00 2001 From: zhangwen Date: Tue, 22 Aug 2017 13:47:45 +0800 Subject: [PATCH] rgw: Remove unused Parameter in Function RGWConf::init() Signed-off-by: Wen Zhang --- src/rgw/rgw_common.h | 2 +- src/rgw/rgw_env.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rgw/rgw_common.h b/src/rgw/rgw_common.h index f0e061cb010..f5d863bf678 100644 --- a/src/rgw/rgw_common.h +++ b/src/rgw/rgw_common.h @@ -385,7 +385,7 @@ class RGWEnv; class RGWConf { friend class RGWEnv; protected: - void init(CephContext *cct, RGWEnv* env); + void init(CephContext *cct); public: RGWConf() : enable_ops_log(1), diff --git a/src/rgw/rgw_env.cc b/src/rgw/rgw_env.cc index bc195f71e76..8be133d67f8 100644 --- a/src/rgw/rgw_env.cc +++ b/src/rgw/rgw_env.cc @@ -14,7 +14,7 @@ void RGWEnv::init(CephContext *cct) { - conf.init(cct, this); + conf.init(cct); } void RGWEnv::set(const boost::string_ref& name, const boost::string_ref& val) @@ -127,7 +127,7 @@ void RGWEnv::remove(const char *name) env_map.erase(iter); } -void RGWConf::init(CephContext *cct, RGWEnv *env) +void RGWConf::init(CephContext *cct) { enable_ops_log = cct->_conf->rgw_enable_ops_log; enable_usage_log = cct->_conf->rgw_enable_usage_log;