Remove unused locals and reinits.
Merge pull request #4 from Half-Shot/patch-1

Remove unused locals and reinits.