mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
TreeUi: removed erroneos old code SimpleNode.getIndex()
This commit is contained in:
@@ -53,19 +53,6 @@ public abstract class SimpleNode extends PresentableNodeDescriptor implements Co
|
||||
return getChildAt(index);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getIndex() {
|
||||
int index = super.getIndex();
|
||||
if (index == -1) {
|
||||
final SimpleNode parent = getParent();
|
||||
if (parent != null) {
|
||||
index = parent.getIndex(this);
|
||||
}
|
||||
}
|
||||
|
||||
return index;
|
||||
}
|
||||
|
||||
protected SimpleNode() {
|
||||
super(null, null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user