From 5745b34603ea828b01044bfa9beb77e9ae2803a3 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 18 May 2020 09:07:31 -0500 Subject: [PATCH] cls/cas/cls_cas_ops: remove dup type Signed-off-by: Sage Weil --- src/cls/cas/cls_cas_ops.h | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/src/cls/cas/cls_cas_ops.h b/src/cls/cas/cls_cas_ops.h index 6632a61a01416..cfd9a77301af3 100644 --- a/src/cls/cas/cls_cas_ops.h +++ b/src/cls/cas/cls_cas_ops.h @@ -115,28 +115,4 @@ struct chunk_obj_refcount { }; WRITE_CLASS_ENCODER(chunk_obj_refcount) -struct obj_refcount { - std::map refs; - std::set 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 -- 2.39.5