From: Andrey Kutejko Date: Wed, 3 Sep 2014 05:54:27 +0000 (+0300) Subject: cleanup X-Git-Tag: 0.6~16 X-Git-Url: https://git.andy128k.dev/?a=commitdiff_plain;h=ce5cd0aae4a6da53255ff3d920c8b6f4e73ea5f5;p=ipf-legacy-orm.git cleanup --- diff --git a/ipf/legacy_orm/app.php b/ipf/legacy_orm/app.php index 4cc3472..8db81a0 100644 --- a/ipf/legacy_orm/app.php +++ b/ipf/legacy_orm/app.php @@ -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()];