feat(cm): prune ContractManager

prune unused functions in ContractManager
This commit is contained in:
Frank.R.Wu 2022-03-24 12:52:01 +08:00
parent 22e0127bd0
commit ca9c51e1bc

View File

@ -24,7 +24,6 @@ import org.bdware.sc.units.MultiContractMeta;
import org.bdware.sc.units.RespCache;
import org.bdware.sc.util.JsonUtil;
import org.bdware.sc.util.VersionUtil;
import org.bdware.server.trustedmodel.ContractExecutor;
import org.bdware.server.trustedmodel.SingleNodeExecutor;
import org.hyperic.sigar.Mem;
import org.hyperic.sigar.ProcMem;
@ -1897,9 +1896,8 @@ public class ContractManager {
return ret;
}
public String deliverEvent(REvent msg) {
public void deliverEvent(REvent msg) {
eventBroker.handle(msg);
return "success";
}
// ======log api
@ -2223,10 +2221,6 @@ public class ContractManager {
eventBroker.doSubscribe(topic, new WSClientConsumer(channel));
}
public ContractExecutor getExecutor(String contractID) {
return statusRecorder.getContractMeta(contractID).contractExecutor;
}
public JsonElement getLedgerParams() {
return chainOpener.getLedgerParams();
}