From ca9c51e1bc82096dff5b3a82216805eb6496eb41 Mon Sep 17 00:00:00 2001 From: "Frank.R.Wu" Date: Thu, 24 Mar 2022 12:52:01 +0800 Subject: [PATCH] feat(cm): prune ContractManager prune unused functions in ContractManager --- src/main/java/org/bdware/sc/ContractManager.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/main/java/org/bdware/sc/ContractManager.java b/src/main/java/org/bdware/sc/ContractManager.java index 125fd96..0962590 100644 --- a/src/main/java/org/bdware/sc/ContractManager.java +++ b/src/main/java/org/bdware/sc/ContractManager.java @@ -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(); }