From: Loic Dachary Date: Fri, 13 Jun 2014 11:01:15 +0000 (+0200) Subject: osd: remove non const get_erasure_code_profile X-Git-Tag: v0.83~91^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1954%2Fhead;p=ceph.git osd: remove non const get_erasure_code_profile It is not used and will unexpectedly create a new entry if selected when the const version is intended. Signed-off-by: Loic Dachary --- diff --git a/src/osd/OSDMap.h b/src/osd/OSDMap.h index fcb3e26d847a..e3ac29a11070 100644 --- a/src/osd/OSDMap.h +++ b/src/osd/OSDMap.h @@ -394,9 +394,6 @@ public: else return i->second; } - map &get_erasure_code_profile(const string &name) { - return erasure_code_profiles[name]; - } const map > &get_erasure_code_profiles() const { return erasure_code_profiles; }