[Tarantool-patches] [PATCH 6/6] txn: drop unused txn_x_flag helpers
Cyrill Gorcunov
gorcunov at gmail.com
Fri Jan 22 16:27:00 MSK 2021
Closes #5128
Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>
---
src/box/txn.h | 18 ------------------
1 file changed, 18 deletions(-)
diff --git a/src/box/txn.h b/src/box/txn.h
index 36a413167..82d18cf91 100644
--- a/src/box/txn.h
+++ b/src/box/txn.h
@@ -393,24 +393,6 @@ struct txn {
struct rlist read_set;
};
-static inline bool
-txn_has_flag(struct txn *txn, unsigned int flag)
-{
- return (txn->flags & flag) != 0;
-}
-
-static inline void
-txn_set_flag(struct txn *txn, unsigned int flag)
-{
- txn->flags |= flag;
-}
-
-static inline void
-txn_clear_flag(struct txn *txn, unsigned int flag)
-{
- txn->flags &= ~flag;
-}
-
/* Pointer to the current transaction (if any) */
static inline struct txn *
in_txn(void)
--
2.29.2
More information about the Tarantool-patches
mailing list