From ca41dbdee7f129ad43e37cafcb7d81c9a0715d33 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Sat, 31 Aug 2013 18:38:24 +0000 Subject: remove unused function (now smarty plugin) --- update.php | 33 --------------------------------- 1 file changed, 33 deletions(-) diff --git a/update.php b/update.php index cc35e44..6ee269a 100755 --- a/update.php +++ b/update.php @@ -188,39 +188,6 @@ function _render($target, $file, $vars=null) { } } -#------------------------------------------------------------------------------ -# get_bcfg2_groups - -function get_bcfg2_groups($hostinfo) { - $groups = array(); - - foreach ($hostinfo as $host => $data) { - foreach ($data['groups'] as $group) { - $groups[$group] = array(); - } - } - - foreach (array_keys($groups) as $group) { - foreach ($hostinfo as $host => $data) { - if (in_array($group, $data['groups'])) { - $groups[$group][$host] = $data; - } - } - } - - foreach ($groups as $group => $hosts) { - if (count($hosts) < 2) { - unset($groups[$group]); - } - - if (count($hosts) == count($hostinfo)) { - $groups[$group] = 'all'; - } - } - - return $groups; -} - #------------------------------------------------------------------------------ # _render_template -- cgit v1.2.3-1-g7c22