summaryrefslogtreecommitdiff
path: root/src/main/java/cuchaz/enigma/analysis/ClassImplementationsTreeNode.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/cuchaz/enigma/analysis/ClassImplementationsTreeNode.java')
-rw-r--r--src/main/java/cuchaz/enigma/analysis/ClassImplementationsTreeNode.java17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/main/java/cuchaz/enigma/analysis/ClassImplementationsTreeNode.java b/src/main/java/cuchaz/enigma/analysis/ClassImplementationsTreeNode.java
index 3420cd6..b1d1dee 100644
--- a/src/main/java/cuchaz/enigma/analysis/ClassImplementationsTreeNode.java
+++ b/src/main/java/cuchaz/enigma/analysis/ClassImplementationsTreeNode.java
@@ -17,7 +17,6 @@ import java.util.List;
17import javax.swing.tree.DefaultMutableTreeNode; 17import javax.swing.tree.DefaultMutableTreeNode;
18 18
19import cuchaz.enigma.mapping.ClassEntry; 19import cuchaz.enigma.mapping.ClassEntry;
20import cuchaz.enigma.mapping.MethodEntry;
21import cuchaz.enigma.mapping.Translator; 20import cuchaz.enigma.mapping.Translator;
22 21
23public class ClassImplementationsTreeNode extends DefaultMutableTreeNode { 22public class ClassImplementationsTreeNode extends DefaultMutableTreeNode {
@@ -59,20 +58,4 @@ public class ClassImplementationsTreeNode extends DefaultMutableTreeNode {
59 // add them to this node 58 // add them to this node
60 nodes.forEach(this::add); 59 nodes.forEach(this::add);
61 } 60 }
62
63 public static ClassImplementationsTreeNode findNode(ClassImplementationsTreeNode node, MethodEntry entry) {
64 // is this the node?
65 if (node.entry.equals(entry)) {
66 return node;
67 }
68
69 // recurse
70 for (int i = 0; i < node.getChildCount(); i++) {
71 ClassImplementationsTreeNode foundNode = findNode((ClassImplementationsTreeNode) node.getChildAt(i), entry);
72 if (foundNode != null) {
73 return foundNode;
74 }
75 }
76 return null;
77 }
78} 61}