Remove useless variable in method

Removed some variables because they are not needed