Normalize end-of-file, removed old code

No more notice spam on loop.