From: xie xingguo Date: Thu, 21 Apr 2016 06:48:39 +0000 (+0800) Subject: crush: kill code we never used X-Git-Tag: v11.0.0~844^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=dffc46c668ad7877664c3898f1e4e0823807acbc;p=ceph.git crush: kill code we never used Signed-off-by: xie xingguo --- diff --git a/src/crush/CrushWrapper.h b/src/crush/CrushWrapper.h index f926ffeed3c2..e466cc2ff497 100644 --- a/src/crush/CrushWrapper.h +++ b/src/crush/CrushWrapper.h @@ -1095,21 +1095,6 @@ public: out[i] = rawout[i]; } - int read_from_file(const char *fn) { - bufferlist bl; - std::string error; - int r = bl.read_file(fn, &error); - if (r < 0) return r; - bufferlist::iterator blp = bl.begin(); - decode(blp); - return 0; - } - int write_to_file(const char *fn) { - bufferlist bl; - encode(bl); - return bl.write_file(fn); - } - void encode(bufferlist &bl, bool lean=false) const; void decode(bufferlist::iterator &blp); void decode_crush_bucket(crush_bucket** bptr, bufferlist::iterator &blp);