remove unused variables
Merge pull request #186 from hsbt/backport-rubycore

remove unused variables