summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alex@spline.inf.fu-berlin.de>2013-08-31 18:38:24 +0000
committerAlexander Sulfrian <alex@spline.inf.fu-berlin.de>2013-08-31 18:38:24 +0000
commitca41dbdee7f129ad43e37cafcb7d81c9a0715d33 (patch)
treecc08aaa6795785e803574e8d7c253ae48eee96b1
parent9ad7e6a8e6b1dae809946942a4216bafc572883b (diff)
downloaddokuwiki-ca41dbdee7f129ad43e37cafcb7d81c9a0715d33.tar.gz
dokuwiki-ca41dbdee7f129ad43e37cafcb7d81c9a0715d33.tar.bz2
dokuwiki-ca41dbdee7f129ad43e37cafcb7d81c9a0715d33.zip
remove unused function (now smarty plugin)
-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) {