prune code

This commit is contained in:
CaiHQ 2023-11-06 21:48:33 +08:00
parent a33f8c43a7
commit 0e37448269

View File

@ -239,8 +239,7 @@ public class ContractNode {
}
public void maintainRouteJoinInfo(JsonObject methodRouteInfoMap, JsonObject methodJoinInfoMap,
JsonObject methodForkInfoMap,
JsonObject dependentFunctions) {
JsonObject methodForkInfoMap, JsonObject dependentFunctions) {
// all functions存了ContractNode中所有的FunctionNode
List<FunctionNode> allFunctions = getFunctions();
for (FunctionNode functionNode : allFunctions) {
@ -306,7 +305,7 @@ public class ContractNode {
}
public void packSourceFunctionAndDependentFunctions(FunctionNode sourceFunctionNode,
JsonObject functions) {
JsonObject functions) {
if (sourceFunctionNode == null)
return;
functions.addProperty(sourceFunctionNode.functionName, sourceFunctionNode.plainText());