aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/analysis/RuleContext.java
diff options
context:
space:
mode:
authorGravatar plf <plf@google.com>2017-08-31 19:24:14 +0200
committerGravatar Vladimir Moskva <vladmos@google.com>2017-09-01 12:27:43 +0200
commitca58a3e431b003bde02be043bfca74226ac4a238 (patch)
treed232bab0fde07fdf534d64bace5e9fdfc831baa3 /src/main/java/com/google/devtools/build/lib/analysis/RuleContext.java
parent9d9e1a7f11d68680c87aefd16ac26ad6af4fd94c (diff)
Automated rollback of commit fc41c430e4de4594a1d699f573d191cbad52a2fb.
PiperOrigin-RevId: 167154793
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/analysis/RuleContext.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/analysis/RuleContext.java11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/analysis/RuleContext.java b/src/main/java/com/google/devtools/build/lib/analysis/RuleContext.java
index 8cd4315b08..3f28614cb7 100644
--- a/src/main/java/com/google/devtools/build/lib/analysis/RuleContext.java
+++ b/src/main/java/com/google/devtools/build/lib/analysis/RuleContext.java
@@ -866,17 +866,6 @@ public final class RuleContext extends TargetContext
}
/**
- * Returns all the providers of the specified type that are listed under the specified attribute
- * of this target in the BUILD file, or an empty list of that attribute is not defined.
- */
- public <C extends TransitiveInfoProvider> Iterable<C> getPrerequisitesSafe(
- String attributeName, Mode mode, final Class<C> classType) {
- return attributes().has(attributeName)
- ? getPrerequisites(attributeName, mode, classType)
- : ImmutableList.of();
- }
-
- /**
* Returns all the declared providers (native and Skylark) for the specified constructor under the
* specified attribute of this target in the BUILD file.
*/