Skip to content

Commit

Permalink
Remove dead code in rbuildfiles().
Browse files Browse the repository at this point in the history
--
MOS_MIGRATED_REVID=123674584
  • Loading branch information
ericfelly authored and dslomov committed Jun 1, 2016
1 parent cf2298c commit 9f0142f
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

import com.google.common.base.Function;
import com.google.common.collect.Collections2;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Iterables;
import com.google.devtools.build.lib.packages.Target;
import com.google.devtools.build.lib.query2.engine.Callback;
Expand Down Expand Up @@ -72,10 +71,6 @@ public <T> void eval(QueryEnvironment<T> env, QueryExpression expression,
if (!(env instanceof SkyQueryEnvironment)) {
throw new QueryException("rbuildfiles can only be used with SkyQueryEnvironment");
}
ImmutableList.Builder<String> fileNames = ImmutableList.builder();
for (Argument arg : args) {
fileNames.add(arg.getWord());
}
((SkyQueryEnvironment) env)
.getRBuildFiles(
Collections2.transform(args, ARGUMENT_TO_PATH_FRAGMENT), (Callback<Target>) callback);
Expand Down

0 comments on commit 9f0142f

Please sign in to comment.