remove not used Java code