removed unused code from graphics manager.