aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/skyframe
diff options
context:
space:
mode:
authorGravatar Janak Ramakrishnan <janakr@google.com>2015-06-18 23:46:36 +0000
committerGravatar Damien Martin-Guillerez <dmarting@google.com>2015-06-19 11:05:22 +0000
commitcda5b66af3da31c74df73a8a19f67691d5d9454f (patch)
tree8c179411dcfd6ed6548a270b9ef1fdd14338fe02 /src/main/java/com/google/devtools/build/skyframe
parentd87167eb2330772c975676fe4edeff0526124404 (diff)
Clean up AllPathsFunction and get rid of getFwdDeps(Target) and getReverseDeps(Target) from the QueryEnvironment interface, since they're no longer needed by any query functions, and also WalkableGraph#get{Direct,Reverse}Deps(SkyKey).
-- MOS_MIGRATED_REVID=96361760
Diffstat (limited to 'src/main/java/com/google/devtools/build/skyframe')
-rw-r--r--src/main/java/com/google/devtools/build/skyframe/DelegatingWalkableGraph.java10
-rw-r--r--src/main/java/com/google/devtools/build/skyframe/WalkableGraph.java23
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);