Remove obsolete code in Qt console.