dm 7 years ago
parent
commit
0f0d714d56
2 changed files with 0 additions and 7 deletions
  1. 0 4
      src/flow/Scene.cpp
  2. 0 3
      src/flow/Scene.h

+ 0 - 4
src/flow/Scene.cpp

@@ -69,10 +69,6 @@ namespace oxygine
 
         Scene::~Scene()
         {
-            //workaround allows to convert this to sp from destructor
-            _ref_counter = 10000;
-            Event ev(EVENT_DESTROY);
-            EventDispatcher::dispatchEvent(&ev);
         }
 
         void Scene::setTransitionIn(spTransition t)

+ 0 - 3
src/flow/Scene.h

@@ -61,9 +61,6 @@ namespace oxygine
                 //back button was pressed (android)
                 EVENT_BACK =            makefourcc('S', 'B', 'a', 'c'),
 
-                //fired from destructor
-                EVENT_DESTROY =         makefourcc('S', 'D', 'e', 's'),
-
                 EVENT_PRESHOWING = EVENT_PRE_SHOWING,
                 EVENT_POSTSHOWING = EVENT_POST_SHOWING,
                 EVENT_PREHIDING = EVENT_PRE_HIDING,