Remove unused Java code