Removed assignment that wasn't referenced, found by clang.
Removed another unused reference found by clang.
Removed a bunch of dead assignments again thanks to clang.
Removed another dead assignment thanks to clang.

If look look at the loop, at line 1805 elts is set and its
only used in this case statement, so it's overwritten there before
being used.
Update copyright.