diff options
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/graph/Digraph.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/graph/Digraph.java | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/graph/Digraph.java b/src/main/java/com/google/devtools/build/lib/graph/Digraph.java index 011f6baec7..8300bef095 100644 --- a/src/main/java/com/google/devtools/build/lib/graph/Digraph.java +++ b/src/main/java/com/google/devtools/build/lib/graph/Digraph.java @@ -79,11 +79,6 @@ public final class Digraph<T> implements Cloneable { private final HashMap<T, Node<T>> nodes = Maps.newHashMap(); /** - * A source of unique, deterministic hashCodes for {@link Node} instances. - */ - private int nextHashCode = 0; - - /** * Construct an empty Digraph. */ public Digraph() {} @@ -377,7 +372,7 @@ public final class Digraph<T> implements Cloneable { if (label == null) { throw new NullPointerException(); } - return nodes.computeIfAbsent(label, k -> new Node<>(k, nextHashCode++)); + return nodes.computeIfAbsent(label, k -> new Node<>(k)); } /****************************************************************** |