Skip to content

Commit

Permalink
delete Deprecated function.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaohong committed May 8, 2018
1 parent ea5fbad commit 2e5d519
Showing 1 changed file with 0 additions and 42 deletions.
42 changes: 0 additions & 42 deletions src/main/java/org/tron/core/Wallet.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,8 @@
import org.tron.core.exception.ValidateSignatureException;
import org.tron.core.net.message.TransactionMessage;
import org.tron.core.net.node.NodeImpl;
import org.tron.protos.Contract.AccountCreateContract;
import org.tron.protos.Contract.AssetIssueContract;
import org.tron.protos.Contract.ParticipateAssetIssueContract;
import org.tron.protos.Contract.TransferAssetContract;
import org.tron.protos.Contract.TransferContract;
import org.tron.protos.Contract.VoteWitnessContract;
import org.tron.protos.Contract.WitnessCreateContract;
import org.tron.protos.Contract.WitnessUpdateContract;
import org.tron.protos.Protocol.Account;
import org.tron.protos.Protocol.Block;
import org.tron.protos.Protocol.Transaction;
Expand Down Expand Up @@ -264,31 +258,6 @@ public GrpcAPI.Return broadcastTransaction(Transaction signaturedTransaction) {
}
}

@Deprecated
public Transaction createAccount(AccountCreateContract contract) {
AccountStore accountStore = dbManager.getAccountStore();
return new TransactionCapsule(contract, accountStore).getInstance();
}

@Deprecated
public Transaction createTransaction(VoteWitnessContract voteWitnessContract) {
return new TransactionCapsule(voteWitnessContract).getInstance();
}

@Deprecated
public Transaction createTransaction(AssetIssueContract assetIssueContract) {
return new TransactionCapsule(assetIssueContract).getInstance();
}

@Deprecated
public Transaction createTransaction(WitnessCreateContract witnessCreateContract) {
return new TransactionCapsule(witnessCreateContract).getInstance();
}

@Deprecated
public Transaction createTransaction(WitnessUpdateContract witnessUpdateContract) {
return new TransactionCapsule(witnessUpdateContract).getInstance();
}

public Block getNowBlock() {
try {
Expand Down Expand Up @@ -324,17 +293,6 @@ public WitnessList getWitnessList() {
return builder.build();
}

@Deprecated
public Transaction createTransaction(TransferAssetContract transferAssetContract) {
return new TransactionCapsule(transferAssetContract).getInstance();
}

@Deprecated
public Transaction createTransaction(
ParticipateAssetIssueContract participateAssetIssueContract) {
return new TransactionCapsule(participateAssetIssueContract).getInstance();
}

public AssetIssueList getAssetIssueList() {
AssetIssueList.Builder builder = AssetIssueList.newBuilder();
dbManager.getAssetIssueStore().getAllAssetIssues()
Expand Down

0 comments on commit 2e5d519

Please sign in to comment.