Remove undefined and redundant variable
Merge pull request #1316 from ojalehto/refactor/remove-undefined-and-redundant-variable

Remove undefined and redundant variable