Removing unused local variable