Engine: removed obsolete code related to gfx mode