Merge pull request #32 from kylestev/refactor/Widget-parent-field

runescape-client: Rename parent field in Widget
This commit is contained in:
Adam
2017-04-26 20:57:10 -04:00
committed by GitHub
2 changed files with 1 additions and 16 deletions

View File

@@ -59,18 +59,6 @@ public class Widget
}
public Widget getParent()
{
net.runelite.rs.api.Widget parent = widget.getParent();
if (parent == null)
{
return null;
}
return new Widget(client, parent);
}
public Widget getParentFromId()
{
int id = getParentId();
if (id == -1)
@@ -121,7 +109,7 @@ public class Widget
public boolean isHidden()
{
Widget parent = getParentFromId();
Widget parent = getParent();
return (parent != null && parent.isHidden()) || widget.isHidden();
}

View File

@@ -29,9 +29,6 @@ import net.runelite.mapping.Import;
public interface Widget
{
@Import("parent")
Widget getParent();
@Import("dynamicValues")
int[][] getDynamicValues();