Removed unused code

Hi, found some unused code in the module.