From eb7e01de7ef6756773033380724f7d74f8e09317 Mon Sep 17 00:00:00 2001 From: tequ Date: Tue, 17 Mar 2026 21:04:40 +0900 Subject: [PATCH] Remove unused tx parameter from removeEmptyHolding() --- include/xrpl/ledger/View.h | 6 ++++-- src/libxrpl/ledger/View.cpp | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/include/xrpl/ledger/View.h b/include/xrpl/ledger/View.h index f925b97b75..4a32044e5c 100644 --- a/include/xrpl/ledger/View.h +++ b/include/xrpl/ledger/View.h @@ -803,7 +803,6 @@ trustCreate( [[nodiscard]] TER removeEmptyHolding( ApplyView& view, - STTx const& tx, AccountID const& accountID, Issue const& issue, beast::Journal journal); @@ -826,7 +825,10 @@ removeEmptyHolding( { return std::visit( [&](TIss const& issue) -> TER { - return removeEmptyHolding(view, tx, accountID, issue, journal); + if constexpr (std::is_same_v) + return removeEmptyHolding(view, accountID, issue, journal); + else + return removeEmptyHolding(view, tx, accountID, issue, journal); }, asset.value()); } diff --git a/src/libxrpl/ledger/View.cpp b/src/libxrpl/ledger/View.cpp index c62b451650..fd4da70a83 100644 --- a/src/libxrpl/ledger/View.cpp +++ b/src/libxrpl/ledger/View.cpp @@ -1833,7 +1833,6 @@ trustCreate( [[nodiscard]] TER removeEmptyHolding( ApplyView& view, - STTx const& tx, AccountID const& accountID, Issue const& issue, beast::Journal journal)