Remove unneeded variable assignment