Remove unused tx parameter from removeEmptyHolding()

This commit is contained in:
tequ
2026-03-17 21:04:40 +09:00
parent c79814a037
commit eb7e01de7e
2 changed files with 4 additions and 3 deletions

View File

@@ -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(
[&]<ValidIssueType TIss>(TIss const& issue) -> TER {
return removeEmptyHolding(view, tx, accountID, issue, journal);
if constexpr (std::is_same_v<TIss, Issue>)
return removeEmptyHolding(view, accountID, issue, journal);
else
return removeEmptyHolding(view, tx, accountID, issue, journal);
},
asset.value());
}

View File

@@ -1833,7 +1833,6 @@ trustCreate(
[[nodiscard]] TER
removeEmptyHolding(
ApplyView& view,
STTx const& tx,
AccountID const& accountID,
Issue const& issue,
beast::Journal journal)