]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cls/cas/cls_cas_ops: remove dup type
authorSage Weil <sage@newdream.net>
Mon, 18 May 2020 14:07:31 +0000 (09:07 -0500)
committerSage Weil <sage@newdream.net>
Wed, 27 May 2020 15:44:31 +0000 (10:44 -0500)
Signed-off-by: Sage Weil <sage@newdream.net>
src/cls/cas/cls_cas_ops.h

index 6632a61a01416570e93b56a981ab3f7aeac04362..cfd9a77301af32b980978acb0a187b4ec5253a45 100644 (file)
@@ -115,28 +115,4 @@ struct chunk_obj_refcount {
 };
 WRITE_CLASS_ENCODER(chunk_obj_refcount)
 
-struct obj_refcount {
-  std::map<std::string, bool> refs;
-  std::set<std::string> retired_refs;
-
-  obj_refcount() {}
-
-  void encode(ceph::buffer::list& bl) const {
-    ENCODE_START(2, 1, bl);
-    encode(refs, bl);
-    encode(retired_refs, bl);
-    ENCODE_FINISH(bl);
-  }
-
-  void decode(ceph::buffer::list::const_iterator& bl) {
-    DECODE_START(2, bl);
-    decode(refs, bl);
-    if (struct_v >= 2) {
-      decode(retired_refs, bl);
-    }
-    DECODE_FINISH(bl);
-  }
-};
-WRITE_CLASS_ENCODER(obj_refcount)
-
 #endif