Skip to content

Commit

Permalink
Remove an unlikely to be implemented TODO
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 569893150
Change-Id: I9568b41cc9f89655811d3bff4ae9ff9bfe2ec460
  • Loading branch information
cushon authored and copybara-github committed Oct 1, 2023
1 parent 9bf8f39 commit dd30503
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import java.nio.file.Path;
import java.util.Map;
import java.util.Set;
import javax.lang.model.util.SimpleTypeVisitor7;
import javax.tools.JavaFileObject;

/**
Expand All @@ -37,7 +36,6 @@ public class ImplicitDependencyExtractor {
/** Map collecting dependency information, used for the proto output */
private final Map<Path, Deps.Dependency> depsMap;

private final TypeVisitor typeVisitor = new TypeVisitor();
private final Set<Path> platformJars;

/**
Expand All @@ -63,12 +61,6 @@ public ImplicitDependencyExtractor(Map<Path, Deps.Dependency> depsMap, Set<Path>
*/
public void accumulate(Context context, Set<ClassSymbol> roots) {
Symtab symtab = Symtab.instance(context);

// Collect transitive references for root types
for (ClassSymbol root : roots) {
root.type.accept(typeVisitor, null);
}

// Collect all other partially resolved types
for (ClassSymbol cs : symtab.getAllClasses()) {
// When recording we want to differentiate between jar references through completed symbols
Expand Down Expand Up @@ -131,8 +123,4 @@ public static Path getJarPath(JavaFileObject file) {
throw new LinkageError(e.getMessage(), e);
}
}

private static class TypeVisitor extends SimpleTypeVisitor7<Void, Void> {
// TODO(bazel-team): Override the visitor methods we're interested in.
}
}

0 comments on commit dd30503

Please sign in to comment.