]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: remove unnecessary overloads in RGWHTTPArgs. 7666/head
authorRadoslaw Zarzynski <rzarzynski@mirantis.com>
Wed, 17 Feb 2016 17:30:06 +0000 (18:30 +0100)
committerRadoslaw Zarzynski <rzarzynski@mirantis.com>
Wed, 17 Feb 2016 17:30:06 +0000 (18:30 +0100)
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
src/rgw/rgw_common.cc
src/rgw/rgw_common.h

index 11b16f1687251f539f77afcdefdd32e4524de31d..98b091edff20d825fb69ebe27d3f6256e58216f9 100644 (file)
@@ -659,13 +659,6 @@ string& RGWHTTPArgs::get(const string& name, bool *exists)
   return empty_str;
 }
 
-string& RGWHTTPArgs::get(const char *name, bool *exists)
-{
-  string s(name);
-  return get(s, exists);
-}
-
-
 int RGWHTTPArgs::get_bool(const string& name, bool *val, bool *exists)
 {
   map<string, string>::iterator iter;
@@ -716,11 +709,6 @@ string RGWHTTPArgs::sys_get(const string& name, bool * const exists)
   return e ? iter->second : string();
 }
 
-string RGWHTTPArgs::sys_get(const char * const name, bool * const exists)
-{
-  return sys_get(string(name), exists);
-}
-
 bool verify_requester_payer_permission(struct req_state *s)
 {
   if (!s->bucket_info.requester_pays)
index e22ed281a0767add0fcca8053c3b2081899c3050..628fd26b4ed8a9479959fa8f7e1ad14c1c67669e 100644 (file)
@@ -292,14 +292,12 @@ class RGWHTTPArgs
   int parse();
   /** Get the value for a specific argument parameter */
   string& get(const string& name, bool *exists = NULL);
-  string& get(const char *name, bool *exists = NULL);
   int get_bool(const string& name, bool *val, bool *exists);
   int get_bool(const char *name, bool *val, bool *exists);
   void get_bool(const char *name, bool *val, bool def_val);
 
   /** Get the value for specific system argument parameter */
   string sys_get(const string& name, bool *exists = nullptr);
-  string sys_get(const char *name, bool *exists = nullptr);
 
   /** see if a parameter is contained in this RGWHTTPArgs */
   bool exists(const char *name) {