mirror of
https://gitee.com/BDWare/common
synced 2025-04-27 14:32:18 +00:00
prune code
This commit is contained in:
parent
a33f8c43a7
commit
0e37448269
@ -239,8 +239,7 @@ public class ContractNode {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void maintainRouteJoinInfo(JsonObject methodRouteInfoMap, JsonObject methodJoinInfoMap,
|
public void maintainRouteJoinInfo(JsonObject methodRouteInfoMap, JsonObject methodJoinInfoMap,
|
||||||
JsonObject methodForkInfoMap,
|
JsonObject methodForkInfoMap, JsonObject dependentFunctions) {
|
||||||
JsonObject dependentFunctions) {
|
|
||||||
// all functions存了ContractNode中,所有的FunctionNode
|
// all functions存了ContractNode中,所有的FunctionNode
|
||||||
List<FunctionNode> allFunctions = getFunctions();
|
List<FunctionNode> allFunctions = getFunctions();
|
||||||
for (FunctionNode functionNode : allFunctions) {
|
for (FunctionNode functionNode : allFunctions) {
|
||||||
@ -306,7 +305,7 @@ public class ContractNode {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void packSourceFunctionAndDependentFunctions(FunctionNode sourceFunctionNode,
|
public void packSourceFunctionAndDependentFunctions(FunctionNode sourceFunctionNode,
|
||||||
JsonObject functions) {
|
JsonObject functions) {
|
||||||
if (sourceFunctionNode == null)
|
if (sourceFunctionNode == null)
|
||||||
return;
|
return;
|
||||||
functions.addProperty(sourceFunctionNode.functionName, sourceFunctionNode.plainText());
|
functions.addProperty(sourceFunctionNode.functionName, sourceFunctionNode.plainText());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user