Fixed lots of warnings (mostly redundant code)

Most of the changes here were done by Eclipse's Quick Fix thing
Could you just replace these lines with `if ( gridProxy.isActive() )`? I don't think this variable is used anywhere else.