Skip to content

Commit 994aa2c

Browse files
SONARPY-1889 code cleanup
1 parent d94d0e1 commit 994aa2c

File tree

1 file changed

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

1 file changed

+0
-8
lines changed

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
import java.util.HashSet;
2929
import java.util.List;
3030
import java.util.Map;
31-
import java.util.Optional;
3231
import java.util.Set;
3332
import java.util.stream.Collectors;
3433
import javax.annotation.CheckForNull;
@@ -133,13 +132,6 @@ public static Map<String, Symbol> symbolsForModule(String moduleName) {
133132
return TypeShed.typeShedSymbols.get(moduleName);
134133
}
135134

136-
public static Map<String, Symbol> symbolsForModuleWithoutStoreInCache(String moduleName) {
137-
return Optional.of(moduleName)
138-
.filter(TypeShed.typeShedSymbols::containsKey)
139-
.map(TypeShed.typeShedSymbols::get)
140-
.orElseGet(() -> searchTypeShedForModule(moduleName));
141-
}
142-
143135
@CheckForNull
144136
public static Symbol symbolWithFQN(String stdLibModuleName, String fullyQualifiedName) {
145137
Map<String, Symbol> symbols = symbolsForModule(stdLibModuleName);

0 commit comments

Comments
 (0)