|
21 | 21 | import java.util.Iterator; |
22 | 22 | import java.util.Map; |
23 | 23 |
|
24 | | -import org.eclipse.core.resources.IFile; |
25 | 24 | import org.eclipse.core.resources.IResource; |
26 | 25 | import org.eclipse.core.runtime.IPath; |
27 | 26 | import org.eclipse.core.runtime.IProgressMonitor; |
|
40 | 39 | import org.eclipse.jdt.core.search.SearchPattern; |
41 | 40 | import org.eclipse.jdt.internal.compiler.env.AccessRuleSet; |
42 | 41 | import org.eclipse.jdt.internal.compiler.env.IBinaryType; |
43 | | -import org.eclipse.jdt.internal.compiler.env.ICompilationUnit; |
44 | 42 | import org.eclipse.jdt.internal.compiler.problem.DefaultProblemFactory; |
45 | 43 | import org.eclipse.jdt.internal.compiler.util.HashtableOfObject; |
46 | 44 | import org.eclipse.jdt.internal.compiler.util.HashtableOfObjectToInt; |
|
69 | 67 | @SuppressWarnings({ "rawtypes", "unchecked" }) |
70 | 68 | public class IndexBasedHierarchyBuilder extends HierarchyBuilder implements SuffixConstants { |
71 | 69 | public static final int MAXTICKS = 800; // heuristic so that there still progress for deep hierachies |
72 | | - /** |
73 | | - * A temporary cache of compilation units to handles to speed info |
74 | | - * to handle translation - it only contains the entries |
75 | | - * for the types in the region (in other words, it contains no supertypes outside |
76 | | - * the region). |
77 | | - */ |
78 | | - protected Map cuToHandle; |
79 | 70 |
|
80 | 71 | /** |
81 | 72 | * The scope this hierarchy builder should restrain results to. |
@@ -134,7 +125,6 @@ private static class SubtypeQuery { |
134 | 125 |
|
135 | 126 | public IndexBasedHierarchyBuilder(TypeHierarchy hierarchy, IJavaSearchScope scope) throws JavaModelException { |
136 | 127 | super(hierarchy); |
137 | | - this.cuToHandle = new HashMap(5); |
138 | 128 | this.binariesFromIndexMatches = new HashMap(10); |
139 | 129 | this.scope = scope; |
140 | 130 | } |
@@ -404,12 +394,7 @@ private void buildFromPotentialSubtypes(String[] allPotentialSubTypes, HashSet l |
404 | 394 | SubMonitor.done(monitor); |
405 | 395 | } |
406 | 396 | } |
407 | | -@Override |
408 | | -protected ICompilationUnit createCompilationUnitFromPath(Openable handle, IFile file, char[] moduleName) { |
409 | | - ICompilationUnit unit = super.createCompilationUnitFromPath(handle, file, moduleName); |
410 | | - this.cuToHandle.put(unit, handle); |
411 | | - return unit; |
412 | | -} |
| 397 | + |
413 | 398 | @Override |
414 | 399 | protected IBinaryType createInfoFromClassFile(Openable classFile, IResource file) { |
415 | 400 | String documentPath = classFile.getPath().toString(); |
|
0 commit comments