Remove commented out, unused code

Some few lines of commented out code is left, that might be useful
for debugging.

If the code ever becomes useful/necessary again, it can be found in the git history, but the main version of the file is not something that should be used as a library/reminder of other useful functions.