removed code that is not used

removed some warnings too