From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id 1900A7030F; Fri, 22 Jan 2021 16:30:11 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 1900A7030F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1611322211; bh=AN379EOm5WEdApfkFfaetNbog9CasZ7mU2wQmYo3w1s=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=danL8UN/+2G2DLVMMxZ5FcvDRAyHuDklxGBiLvnGL4WfOyEfxOL56PONANAZBYKDo 8j9n9ipHbrqZddfsrtElvRKKm75twp4dGZgnRsmBIG5KEHr4VLO2dpc7EbbRmyjiJ/ iybW23dqtKdYJgG1XGHlzFILXU61LOpN8do83Zx0= Received: from mail-lj1-f181.google.com (mail-lj1-f181.google.com [209.85.208.181]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id A985163354 for ; Fri, 22 Jan 2021 16:28:19 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org A985163354 Received: by mail-lj1-f181.google.com with SMTP id x23so6499202lji.7 for ; Fri, 22 Jan 2021 05:28:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6LPNXQwa1HhfTPTE/tP3aQSDzlDBxHq2Fdc2DsgAfoE=; b=NZ0ShLkhbKdpkIME2B/DDlJHHCpFkkjnWTzxrB+ySMaSoGHHHyYkUT//8X7PqI2c++ XGyoKVRk7SOtWeHZnI7xmOWF+KJZvVJXql/bQtilD/SKGYWw9BK3M9OiIbhVgYtEhmaC aGOw8x61Jt2AjSibl8r9BpHuUR+djIlti1/7NNxEAI3QQkQsbJTI2UMQak6ZeiPCnv4w 1L3fXDwtz9vWoXNoiIRmu9Z0kARKv7y/wW3vNtoX+a70b7VSQ+sUrciIxpVuMQqFZyp/ IR4Pmq8u8ilVAWQzjsrLjdMUOHnbQ3bdosECBtmzv1eOEgZHcN99L/BzvZGHDwWJM76k VP/g== X-Gm-Message-State: AOAM5331g2wKZxM02a4qkFv/kqShdajriU6IgWL+3F9LrtqpFj8AvK7U HJVBoCt22HhcW4HnpafbWhddWE7THHk= X-Google-Smtp-Source: ABdhPJzkPElXAbmREKqiSododKlTe/hGSc8Jte8iOcZUoR7oKOkcPNFZ1JOqaE6+wPepAva9TYDrxw== X-Received: by 2002:a2e:b80d:: with SMTP id u13mr602058ljo.143.1611322098694; Fri, 22 Jan 2021 05:28:18 -0800 (PST) Received: from grain.localdomain ([5.18.91.94]) by smtp.gmail.com with ESMTPSA id 8sm481696lfz.113.2021.01.22.05.28.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Jan 2021 05:28:17 -0800 (PST) Received: by grain.localdomain (Postfix, from userid 1000) id A7F9F5609D5; Fri, 22 Jan 2021 16:27:04 +0300 (MSK) To: tml Date: Fri, 22 Jan 2021 16:27:00 +0300 Message-Id: <20210122132700.272816-7-gorcunov@gmail.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210122132700.272816-1-gorcunov@gmail.com> References: <20210122132700.272816-1-gorcunov@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 6/6] txn: drop unused txn_x_flag helpers X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Cyrill Gorcunov via Tarantool-patches Reply-To: Cyrill Gorcunov Cc: Vladislav Shpilevoy Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" Closes #5128 Signed-off-by: Cyrill Gorcunov --- 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