Skip to content

Commit e1aa0ec

Browse files
andreaguarinoguillaume-dequenne
authored andcommitted
SONARPY-940 Remove unsed code that handles stdlib Typeshed symbols
1 parent ec71a5b commit e1aa0ec

File tree

1 file changed

+0
-12
lines changed
  • python-frontend/src/main/java/org/sonar/python/types

1 file changed

+0
-12
lines changed

python-frontend/src/main/java/org/sonar/python/types/TypeShed.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,6 @@ public class TypeShed {
8484
private static final Map<String, Set<Symbol>> builtinGlobalSymbols = new HashMap<>();
8585
private static final Set<String> modulesInProgress = new HashSet<>();
8686

87-
private static final String STDLIB_2AND3 = "typeshed/stdlib/2and3/";
88-
private static final String STDLIB_2 = "typeshed/stdlib/2/";
89-
private static final String STDLIB_3 = "typeshed/stdlib/3/";
9087
private static final String THIRD_PARTY_2AND3 = "typeshed/third_party/2and3/";
9188
private static final String THIRD_PARTY_2 = "typeshed/third_party/2/";
9289
private static final String THIRD_PARTY_3 = "typeshed/third_party/3/";
@@ -211,15 +208,6 @@ private static Set<Symbol> searchTypeShedForModule(String moduleName) {
211208
modulesInProgress.remove(moduleName);
212209
return customSymbols;
213210
}
214-
Set<Symbol> standardLibrarySymbols = new HashSet<>(getModuleSymbols(moduleName, STDLIB_2AND3, builtinGlobalSymbols).values());
215-
if (standardLibrarySymbols.isEmpty()) {
216-
standardLibrarySymbols = commonSymbols(getModuleSymbols(moduleName, STDLIB_2, builtinGlobalSymbols),
217-
getModuleSymbols(moduleName, STDLIB_3, builtinGlobalSymbols), moduleName);
218-
}
219-
if (!standardLibrarySymbols.isEmpty()) {
220-
modulesInProgress.remove(moduleName);
221-
return standardLibrarySymbols;
222-
}
223211
Set<Symbol> thirdPartySymbols = new HashSet<>(getModuleSymbols(moduleName, THIRD_PARTY_2AND3, builtinGlobalSymbols).values());
224212
if (thirdPartySymbols.isEmpty()) {
225213
thirdPartySymbols = commonSymbols(getModuleSymbols(moduleName, THIRD_PARTY_2, builtinGlobalSymbols),

0 commit comments

Comments
 (0)