Eliminate useless var definitions.
Merge pull request #902 from akzhan/eliminate_useless_var_definitions

Eliminate useless var definitions.