opendial icon indicating copy to clipboard operation
opendial copied to clipboard

BNode->modifyVariableId() : useless parameter

Open yunhenk opened this issue 6 years ago • 0 comments

Hi, i'm learning from your code, and find that the below function seems to have an useless parameter newNodeId,please check it.

	protected void modifyVariableId(String oldNodeId, String newNodeId) {
		if (inputNodes.containsKey(oldNodeId)) {
			BNode inputNode = inputNodes.get(oldNodeId);
			removeInputNode_internal(oldNodeId);
			addInputNode_internal(inputNode);
		}
		else if (outputNodes.containsKey(oldNodeId)) {
			BNode outputNode = outputNodes.get(oldNodeId);
			removeOutputNode_internal(oldNodeId);
			addOutputNode_internal(outputNode);
		}
	}

yunhenk avatar Sep 12 '18 03:09 yunhenk