]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
include/encoding.h: Remove unused _FILLER_ macros
authorAdam Kupczyk <akupczyk@ibm.com>
Fri, 21 Mar 2025 14:45:33 +0000 (14:45 +0000)
committerAdam Kupczyk <akupczyk@ibm.com>
Fri, 28 Mar 2025 16:06:02 +0000 (16:06 +0000)
Macros
are not longer used.

Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
src/include/encoding.h

index 362143a60325c9220f8b8c286a2fbfcc381feae9..fc8825c6492c9b0e6cd778e2f87abd15d9376ad9 100644 (file)
@@ -1447,21 +1447,6 @@ decode(std::array<T, N>& 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<T, N>& 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)                                        \