Removed unnecessary code

Removed unnecessary code.