boolean isRemovableAssign ( Node n ) { return ( NodeUtil . isAssignmentOp ( n ) && n . getFirstChild ( ) . isName ( ) ) || n . isInc ( ) || n . isDec ( ) ; }
will already remove variables that are initialized but unused .