Fixes using wrong variable as default for next config get() call
Removes unused code
Merge pull request #753 from nsendetzky/master

Removes unused code