removing dead java code