Remove unused java listener functions.