From: Kefu Chai Date: Wed, 3 Aug 2022 03:49:32 +0000 (+0800) Subject: common,include: drop include/cmp.h X-Git-Tag: v18.0.0~339^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=0420a7bb917f5c5a8ade73de9ab4207550c5ac74;p=ceph.git common,include: drop include/cmp.h it is not used anymore. so just ditch it. Signed-off-by: Kefu Chai --- diff --git a/src/common/hobject.h b/src/common/hobject.h index 83885163efe81..28f314d7935e4 100644 --- a/src/common/hobject.h +++ b/src/common/hobject.h @@ -16,7 +16,6 @@ #define __CEPH_OS_HOBJECT_H #include "include/types.h" -#include "include/cmp.h" #include "json_spirit/json_spirit_value.h" #include "include/ceph_assert.h" // spirit clobbers it! diff --git a/src/include/cmp.h b/src/include/cmp.h deleted file mode 100644 index 9b39aaab21970..0000000000000 --- a/src/include/cmp.h +++ /dev/null @@ -1,51 +0,0 @@ -#ifndef __CEPH_CMP_H -#define __CEPH_CMP_H - -/* - * macros to define comparison operators for classes with small numbers of members. - */ -#define WRITE_EQ_OPERATORS_7(type, a, b, c, d, e, f, g) \ - inline bool operator==(const type &l, const type &r) { \ - return l.a == r.a && l.b == r.b && l.c == r.c && l.d == r.d && l.e == r.e && l.f == r.f && l.g == r.g; \ - } \ - inline bool operator!=(const type &l, const type &r) { \ - return l.a != r.a || l.b != r.b || l.c != r.c || l.d != r.d || l.e != r.e || l.f != r.f || l.g != r.g; \ - } -#define WRITE_CMP_OPERATORS_7(type, a, b, c, d, e, f, g) \ - inline bool operator<=(const type &l, const type &r) { \ - return l.a < r.a || \ - (l.a == r.a && (l.b < r.b || \ - (l.b == r.b && (l.c < r.c || \ - (l.c == r.c && (l.d < r.d || \ - (l.d == r.d && (l.e < r.e || \ - (l.e == r.e && (l.f < r.f || \ - (l.f == r.f && l.g <= r.g))))))))))); \ - } \ - inline bool operator>=(const type &l, const type &r) { \ - return l.a > r.a || \ - (l.a == r.a && (l.b > r.b || \ - (l.b == r.b && (l.c > r.c || \ - (l.c == r.c && (l.d > r.d || \ - (l.d == r.d && (l.e > r.e || \ - (l.e == r.e && (l.f > r.f || \ - (l.f == r.f && l.g >= r.g))))))))))); \ - } \ - inline bool operator>(const type &l, const type &r) { \ - return l.a > r.a || \ - (l.a == r.a && (l.b > r.b || \ - (l.b == r.b && (l.c > r.c || \ - (l.c == r.c && (l.d > r.d || \ - (l.d == r.d && (l.e > r.e || \ - (l.e == r.e && (l.f > r.f || \ - (l.f == r.f && l.g > r.g))))))))))); \ - } \ - inline bool operator<(const type &l, const type &r) { \ - return l.a < r.a || \ - (l.a == r.a && (l.b < r.b || \ - (l.b == r.b && (l.c < r.c || \ - (l.c == r.c && (l.d < r.d || \ - (l.d == r.d && (l.e < r.e || \ - (l.e == r.e && (l.f < r.f || \ - (l.f == r.f && l.g < r.g))))))))))); \ - } -#endif diff --git a/src/include/object.h b/src/include/object.h index 68d55938381d0..4564af86e5770 100644 --- a/src/include/object.h +++ b/src/include/object.h @@ -29,7 +29,6 @@ #include "hash.h" #include "encoding.h" #include "ceph_hash.h" -#include "cmp.h" struct object_t { std::string name;