Code cleanups
* Replace magic numbers with enum-defines
* Remove superfluous return; statements (used as last statements in a few
"static void" methods)
* Remove some old unused/commented out stuff


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54914 954f8c5b-7b00-dc11-b283-0030488c597c