summaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/gluegen
diff options
context:
space:
mode:
authorHarvey Harrison <[email protected]>2013-07-15 21:32:05 -0700
committerHarvey Harrison <[email protected]>2013-07-15 21:32:05 -0700
commitcaeddfc52d7cd7d06c7a9599298bca1e1c37fa62 (patch)
treece7db4442d6a08cd84c40a4d2236d7ea607a9d3f /src/java/com/jogamp/gluegen
parente4a213c56042b1eba4c06421c69f09160dea9376 (diff)
gluegen: remove unneeded casts to TNode
Signed-off-by: Harvey Harrison <[email protected]>
Diffstat (limited to 'src/java/com/jogamp/gluegen')
-rw-r--r--src/java/com/jogamp/gluegen/cgram/TNode.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/java/com/jogamp/gluegen/cgram/TNode.java b/src/java/com/jogamp/gluegen/cgram/TNode.java
index f7feecc..f23d0fc 100644
--- a/src/java/com/jogamp/gluegen/cgram/TNode.java
+++ b/src/java/com/jogamp/gluegen/cgram/TNode.java
@@ -185,7 +185,7 @@ public void initialize(AST tr) {
/** return the first sibling of this node, which is
this if the prev sibling is null */
public TNode getFirstSibling() {
- TNode prev = (TNode)left;
+ TNode prev = left;
if(prev != null)
return prev.getFirstSibling();
else
@@ -195,7 +195,7 @@ public void initialize(AST tr) {
/** return the parent node of this node */
public TNode getParent() {
- return (TNode)getFirstSibling().up;
+ return getFirstSibling().up;
}
@@ -231,8 +231,8 @@ public void initialize(AST tr) {
/** remove this node from the tree, resetting sibling and parent
pointers as necessary. This method maintains double-linking */
public void removeSelf() {
- TNode parent = (TNode)up;
- TNode prev = (TNode)left;
+ TNode parent = up;
+ TNode prev = left;
TNode next = (TNode)right;
if(parent != null) {