]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crush: kill code we never used
authorxie xingguo <xie.xingguo@zte.com.cn>
Thu, 21 Apr 2016 06:48:39 +0000 (14:48 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Thu, 21 Apr 2016 07:49:07 +0000 (15:49 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/crush/CrushWrapper.h

index f926ffeed3c2f8474b56a49ceda53277b06a3535..e466cc2ff4979bac792aeef1d6748f4cb9c7ce2d 100644 (file)
@@ -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);