Browse Source

Clean up code

Johan Mattsson 2 years ago
parent
commit
2a784b592d
1 changed files with 1 additions and 3 deletions
  1. 1 3
      engine/source/2d/editorToy/EditorToySceneWindow.cc

+ 1 - 3
engine/source/2d/editorToy/EditorToySceneWindow.cc

@@ -382,10 +382,8 @@ bool EditorToySceneWindow::initCursors()
       mLeftRightCursor = dynamic_cast<GuiCursor*>(obj);
       obj = Sim::findObject("DefaultCursor");
       mDefaultCursor = dynamic_cast<GuiCursor*>(obj);
-      obj = Sim::findObject("MoveCursor");
-      mMoveCursor = dynamic_cast<GuiCursor*>(obj);
 
-      return(mMoveCursor != NULL && mUpDownCursor != NULL && mLeftRightCursor != NULL && mDefaultCursor != NULL && mMoveCursor != NULL);
+      return(mMoveCursor != NULL && mUpDownCursor != NULL && mLeftRightCursor != NULL && mDefaultCursor != NULL);
    }
    else
       return(true);