refactor: Drop unnecessary associateAsset calls from loan delete paths (#7986)

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Timur Yalymov
2026-08-12 13:41:30 +00:00
committed by Ed Hennis
parent 153b7839a7
commit 1281c7a222
2 changed files with 0 additions and 6 deletions

View File

@@ -12,7 +12,6 @@
#include <xrpl/protocol/SField.h>
#include <xrpl/protocol/STAmount.h>
#include <xrpl/protocol/STLedgerEntry.h>
#include <xrpl/protocol/STTakesAsset.h>
#include <xrpl/protocol/STTx.h>
#include <xrpl/protocol/TER.h>
#include <xrpl/protocol/XRPAmount.h>
@@ -198,8 +197,6 @@ LoanBrokerDelete::doApply()
view().erase(broker);
associateAsset(*broker, vaultAsset);
return tesSUCCESS;
}

View File

@@ -130,9 +130,6 @@ LoanDelete::doApply()
// Decrement the borrower's owner count
decreaseOwnerCountForObject(view, borrowerSle, loanSle, 1, j_);
// These associations shouldn't do anything, but do them just to be safe
associateAsset(*loanSle, vaultAsset);
associateAsset(*brokerSle, vaultAsset);
associateAsset(*vaultSle, vaultAsset);
return tesSUCCESS;