Fix trivial warnings in utils

Removed unused variables and added more explicit returns to make the
real warnings actually stand out.
Merge pull request #126 from viraptor/trivial-warnings

Fix trivial warnings in utils