diff options
Diffstat (limited to 'src/main/java/com/google/devtools/build/skyframe')
-rw-r--r-- | src/main/java/com/google/devtools/build/skyframe/DelegatingWalkableGraph.java | 10 | ||||
-rw-r--r-- | src/main/java/com/google/devtools/build/skyframe/WalkableGraph.java | 23 |
2 files changed, 6 insertions, 27 deletions
diff --git a/src/main/java/com/google/devtools/build/skyframe/DelegatingWalkableGraph.java b/src/main/java/com/google/devtools/build/skyframe/DelegatingWalkableGraph.java index fee4f9c579..b88b890300 100644 --- a/src/main/java/com/google/devtools/build/skyframe/DelegatingWalkableGraph.java +++ b/src/main/java/com/google/devtools/build/skyframe/DelegatingWalkableGraph.java @@ -82,11 +82,6 @@ public class DelegatingWalkableGraph implements WalkableGraph { return errorInfo == null ? null : errorInfo.getException(); } - @Override - public Iterable<SkyKey> getDirectDeps(SkyKey key) { - return getEntry(key).getDirectDeps(); - } - private static final Function<NodeEntry, Iterable<SkyKey>> GET_DIRECT_DEPS_FUNCTION = new Function<NodeEntry, Iterable<SkyKey>>() { @Override @@ -100,11 +95,6 @@ public class DelegatingWalkableGraph implements WalkableGraph { return Maps.transformValues(getEntries(keys), GET_DIRECT_DEPS_FUNCTION); } - @Override - public Iterable<SkyKey> getReverseDeps(SkyKey key) { - return getEntry(key).getReverseDeps(); - } - private static final Function<NodeEntry, Iterable<SkyKey>> GET_REVERSE_DEPS_FUNCTION = new Function<NodeEntry, Iterable<SkyKey>>() { @Override diff --git a/src/main/java/com/google/devtools/build/skyframe/WalkableGraph.java b/src/main/java/com/google/devtools/build/skyframe/WalkableGraph.java index e020a26ba7..be68248b29 100644 --- a/src/main/java/com/google/devtools/build/skyframe/WalkableGraph.java +++ b/src/main/java/com/google/devtools/build/skyframe/WalkableGraph.java @@ -48,31 +48,20 @@ public interface WalkableGraph { /** * Returns the exception thrown when computing the node with the given key, if any. If the node - * was computed successfully, returns null. A node with this key must exist in the graph. + * was computed successfully, returns null. A node with this key must exist and be done in the + * graph. */ @Nullable Exception getException(SkyKey key); /** - * Returns the direct dependencies of the node with the given key. A node with this key must exist - * in the graph. - */ - Iterable<SkyKey> getDirectDeps(SkyKey key); - - /** - * Returns a map giving the direct dependencies of the nodes with the given keys. Same semantics - * as {@link #getDirectDeps(SkyKey)}. + * Returns a map giving the direct dependencies of the nodes with the given keys. A node for each + * given key must exist and be done in the graph. */ Map<SkyKey, Iterable<SkyKey>> getDirectDeps(Iterable<SkyKey> keys); - /** - * Returns the reverse dependencies of the node with the given key. A node with this key must - * exist in the graph. - */ - Iterable<SkyKey> getReverseDeps(SkyKey key); - /** - * Returns a map giving the reverse dependencies of the nodes with the given keys. Same semantics - * as {@link #getReverseDeps(SkyKey)}. + * Returns a map giving the reverse dependencies of the nodes with the given keys. A node for each + * given key must exist and be done in the graph. */ Map<SkyKey, Iterable<SkyKey>> getReverseDeps(Iterable<SkyKey> keys); |