From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Vladimir Davydov Subject: [PATCH 1/6] txn: remove unused C++ wrappers Date: Wed, 13 Jun 2018 19:10:33 +0300 Message-Id: <4276e80f2db5e9dfcd901aadb9c6db7fc8e8afc3.1528906027.git.vdavydov.dev@gmail.com> In-Reply-To: References: In-Reply-To: References: To: kostja@tarantool.org Cc: tarantool-patches@freelists.org List-ID: --- 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