Drop PyClassTypeImpl#getPossibleInstanceMembers and its usages as useless and not modified since 2008

This commit is contained in:
Semyon Proshev
2016-03-09 19:06:53 +03:00
parent ae1b7f7d17
commit 3c1c2ff832
2 changed files with 1 additions and 20 deletions
@@ -500,13 +500,7 @@ public class PyUnresolvedReferencesInspection extends PyInspection {
if (PyNames.COMPARISON_OPERATORS.contains(refName)) {
return;
}
if (expr.isQualified()) {
final PyClassTypeImpl object_type = (PyClassTypeImpl)PyBuiltinCache.getInstance(node).getObjectType();
if ((object_type != null) && object_type.getPossibleInstanceMembers().contains(refName)) {
return;
}
}
else {
if (!expr.isQualified()) {
if (PyUnreachableCodeInspection.hasAnyInterruptedControlFlowPaths(expr)) {
return;
}
@@ -684,19 +684,6 @@ public class PyClassTypeImpl extends UserDataHolderBase implements PyClassType {
}
}
@NotNull
public Set<String> getPossibleInstanceMembers() {
Set<String> ret = new HashSet<String>();
/*
if (myClass != null) {
PyClassType otype = PyBuiltinCache.getInstance(myClass.getProject()).getObjectType();
ret.addAll(otype.getPossibleInstanceMembers());
}
*/
// TODO: add our own ideas here, e.g. from methods other than constructor
return Collections.unmodifiableSet(ret);
}
@Override
public boolean equals(Object o) {
if (this == o) return true;