mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Drop PyClassTypeImpl#getPossibleInstanceMembers and its usages as useless and not modified since 2008
This commit is contained in:
+1
-7
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user