summaryrefslogtreecommitdiffstats
path: root/update.php
diff options
context:
space:
mode:
Diffstat (limited to 'update.php')
-rwxr-xr-xupdate.php33
1 files changed, 0 insertions, 33 deletions
diff --git a/update.php b/update.php
index cc35e44..6ee269a 100755
--- a/update.php
+++ b/update.php
@@ -189,39 +189,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
function _render_template($template, $vars=null) {