deleted dead java and cpp code