Removing useless variable
Fixing warning