]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: remove non const get_erasure_code_profile 1954/head
authorLoic Dachary <loic@dachary.org>
Fri, 13 Jun 2014 11:01:15 +0000 (13:01 +0200)
committerLoic Dachary <loic@dachary.org>
Fri, 13 Jun 2014 12:59:51 +0000 (14:59 +0200)
It is not used and will unexpectedly create a new entry if selected when
the const version is intended.

Signed-off-by: Loic Dachary <loic@dachary.org>
src/osd/OSDMap.h

index fcb3e26d847ac076892bb02e9ddc9fa61a9d9c1d..e3ac29a1107044991193db232dd250d5d3c66da6 100644 (file)
@@ -394,9 +394,6 @@ public:
     else
       return i->second;
   }
-  map<string,string> &get_erasure_code_profile(const string &name) {
-    return erasure_code_profiles[name];
-  }
   const map<string,map<string,string> > &get_erasure_code_profiles() const {
     return erasure_code_profiles;
   }