remove unuse code from editorapp.cpp