Fix issues with function in no-unused-vars
Merge pull request #257 from ilyavolodin/no-unused-vars

Fix issues with function in no-unused-vars (Fixes #256)