]> git.andy128k.dev Git - ipf-legacy-orm.git/commitdiff
cleanup
authorAndrey Kutejko <andy128k@gmail.com>
Wed, 3 Sep 2014 05:54:27 +0000 (08:54 +0300)
committerAndrey Kutejko <andy128k@gmail.com>
Wed, 3 Sep 2014 05:54:27 +0000 (08:54 +0300)
ipf/legacy_orm/app.php

index 4cc34722a84aab8192c2f25cf82f9e09a5f2437a..8db81a04101b1e1c17569b56f2c30e54a1201393 100644 (file)
@@ -20,16 +20,6 @@ class IPF_Legacy_ORM_App extends IPF_Application
                 // nothing to do
             }
 
-            // reorder models according to a given option
-            if (method_exists($app, 'admin_models_order')) {
-                $ordered = $app->admin_models_order();
-                foreach ($ordered as $modelname) {
-                    if (!in_array($modelname, $models))
-                        throw new IPF_Exception_Panic("Model \"$modelname\" does not exist.");
-                }
-                $models = array_merge($ordered, array_diff($models, $ordered));
-            }
-
             self::$appModels[$app->getName()] = $models;
         }
         return self::$appModels[$app->getName()];