[PATCH 1/6] txn: remove unused C++ wrappers
Vladimir Davydov
vdavydov.dev at gmail.com
Wed Jun 13 19:10:33 MSK 2018
---
src/box/txn.h | 25 -------------------------
1 file changed, 25 deletions(-)
diff --git a/src/box/txn.h b/src/box/txn.h
index 4db74dfc..f3d690be 100644
--- a/src/box/txn.h
+++ b/src/box/txn.h
@@ -370,31 +370,6 @@ box_txn_rollback_to_savepoint(box_txn_savepoint_t *savepoint);
#include "diag.h"
-static inline struct txn *
-txn_begin_stmt_xc(struct space *space)
-{
- struct txn *txn = txn_begin_stmt(space);
- if (txn == NULL)
- diag_raise();
- return txn;
-}
-
-static inline struct txn *
-txn_begin_ro_stmt_xc(struct space *space)
-{
- struct txn *txn;
- if (txn_begin_ro_stmt(space, &txn) != 0)
- diag_raise();
- return txn;
-}
-
-static inline void
-txn_commit_stmt_xc(struct txn *txn, struct request *request)
-{
- if (txn_commit_stmt(txn, request) != 0)
- diag_raise();
-}
-
static inline void
txn_check_singlestatement_xc(struct txn *txn, const char *where)
{
--
2.11.0
More information about the Tarantool-patches
mailing list