Skip to content

Commit 68777c9

Browse files
committed
style: remove unused field and method
1 parent 196cb5d commit 68777c9

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

chainbase/src/main/java/org/tron/core/db/TransactionTrace.java

-14
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,6 @@ public class TransactionTrace {
6464

6565
private ForkController forkController;
6666

67-
private VotesStore votesStore;
68-
69-
private DelegationStore delegationStore;
70-
7167
@Getter
7268
private TransactionContext transactionContext;
7369
@Getter
@@ -103,9 +99,6 @@ public TransactionTrace(TransactionCapsule trx, StoreFactory storeFactory,
10399
this.runtime = runtime;
104100
this.forkController = new ForkController();
105101
forkController.init(storeFactory.getChainBaseManager());
106-
107-
this.votesStore = storeFactory.getChainBaseManager().getVotesStore();
108-
this.delegationStore = storeFactory.getChainBaseManager().getDelegationStore();
109102
}
110103

111104
public TransactionCapsule getTrx() {
@@ -320,13 +313,6 @@ public static byte[] convertToTronAddress(byte[] address) {
320313
return address;
321314
}
322315

323-
public void deleteDelegationByAddress(byte[] address){
324-
delegationStore.delete(address); //begin Cycle
325-
delegationStore.delete(("lastWithdraw-" + Hex.toHexString(address)).getBytes()); //last Withdraw cycle
326-
delegationStore.delete(("end-" + Hex.toHexString(address)).getBytes()); //end cycle
327-
}
328-
329-
330316
public enum TimeResultType {
331317
NORMAL,
332318
LONG_RUNNING,

0 commit comments

Comments
 (0)