Removed unused code

Extracted the state of the program into a MainState structure, and extracted local functions of main() into static functions.

(0) -300 -100 -30 -10 -2 +2 +10 tip

mercurial