From 167bba6846b9c575676d4f71a19bce90ccf9e224 Mon Sep 17 00:00:00 2001 From: Adam Kupczyk Date: Fri, 21 Mar 2025 14:45:33 +0000 Subject: [PATCH] include/encoding.h: Remove unused _FILLER_ macros Macros are not longer used. Signed-off-by: Adam Kupczyk --- src/include/encoding.h | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/src/include/encoding.h b/src/include/encoding.h index 362143a60325c..fc8825c6492c9 100644 --- a/src/include/encoding.h +++ b/src/include/encoding.h @@ -1447,21 +1447,6 @@ decode(std::array& v, bufferlist::const_iterator& p) using ::ceph::encode; \ do { -#define ENCODE_START_FILLER(v, compat, filler_in) \ - __u8 struct_v = v; \ - __u8 struct_compat = compat; \ - ceph_le32 struct_len; \ - auto& filler = filler_in; \ - filler.copy_in(sizeof(struct_v), (char *)&struct_v); \ - filler.copy_in(sizeof(struct_compat), \ - (char *)&struct_compat); \ - char* struct_len_ptr = filler.c_str(); \ - filler.advance(sizeof(struct_len)); \ - const auto starting_bl_len = filler.c_str(); \ - using ::ceph::encode; \ - do { - - /** * finish encoding block * @@ -1479,18 +1464,6 @@ decode(std::array& v, bufferlist::const_iterator& p) (char *)&struct_compat); \ filler.copy_in(sizeof(struct_len), (char *)&struct_len); - -/** - * finish encoding block with filler - * - * @param bl bufferlist we were encoding to - * @param new_struct_compat struct-compat value to use - */ -#define ENCODE_FINISH_FILLER() \ - } while (false); \ - struct_len = filler.c_str() - starting_bl_len; \ - *((ceph_le32*)struct_len_ptr) = struct_len; - #define ENCODE_FINISH(bl) ENCODE_FINISH_NEW_COMPAT(bl, 0) #define DECODE_ERR_OLDVERSION(func, v, compatv) \ -- 2.39.5