[Java] Remove unused code
[Java] Remove unused code