]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: Remove unused Parameter in Function RGWConf::init() 17129/head
authorzhangwen <zhangwen1@unionpay.com>
Tue, 22 Aug 2017 05:47:45 +0000 (13:47 +0800)
committerzhangwen <zhangwen1@unionpay.com>
Tue, 22 Aug 2017 05:47:45 +0000 (13:47 +0800)
Signed-off-by: Wen Zhang <zhangwen1@unionpay.com>
src/rgw/rgw_common.h
src/rgw/rgw_env.cc

index f0e061cb0103476c107ec96dcbd04a01f2c68480..f5d863bf67868519f2f221b105ecb3d6b3755d8a 100644 (file)
@@ -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),
index bc195f71e76af405d333b46580d6ca747e10b9e9..8be133d67f8064344b733882652b64b41269fe38 100644 (file)
@@ -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;