Removed some warnings

Removed some code that caused eclipse warnings.