From ce5cd0aae4a6da53255ff3d920c8b6f4e73ea5f5 Mon Sep 17 00:00:00 2001 From: Andrey Kutejko Date: Wed, 3 Sep 2014 08:54:27 +0300 Subject: [PATCH] cleanup --- ipf/legacy_orm/app.php | 10 ---------- 1 file changed, 10 deletions(-) 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()]; -- 2.49.0