r2756 - applyObjectProblemMask(): drop unused function
authorDenis Ovsienko <infrastation@yandex.ru>
Sat, 16 May 2009 00:36:38 +0000 (00:36 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Sat, 16 May 2009 00:36:38 +0000 (00:36 +0000)
 - getRackRows(): don't call parseWikiLink

inc/database.php
inc/functions.php

index 3a954c81ee31b6890c50d347ad0fcadf04a7c6db..5487d7e33de1acf89243f66dbd09ef158d021628 100644 (file)
@@ -171,7 +171,7 @@ function getRackRows ()
        $result = useSelectBlade ($query, __FUNCTION__);
        $rows = array();
        while ($row = $result->fetch (PDO::FETCH_ASSOC))
-               $rows[$row['id']] = parseWikiLink ($row['name'], 'o');
+               $rows[$row['id']] = $row['name'];
        $result->closeCursor();
        asort ($rows);
        return $rows;
index 998199ffecc351fcd8a168eac5a10146f6c59913..9968db63e04e9b9535d69c86605a711cb5a7b3f2 100644 (file)
@@ -216,22 +216,6 @@ function applyRackProblemMask (&$rackData)
                        }
 }
 
-// This mask should allow toggling 'T' and 'W' on object's rackspace.
-function applyObjectProblemMask (&$rackData)
-{
-       for ($unit_no = $rackData['height']; $unit_no > 0; $unit_no--)
-               for ($locidx = 0; $locidx < 3; $locidx++)
-                       switch ($rackData[$unit_no][$locidx]['state'])
-                       {
-                               case 'T':
-                               case 'W':
-                                       $rackData[$unit_no][$locidx]['enabled'] = ($rackData[$unit_no][$locidx]['object_id'] == $object_id);
-                                       break;
-                               default:
-                                       $rackData[$unit_no][$locidx]['enabled'] = FALSE;
-                       }
-}
-
 // This function highlights specified object (and removes previous highlight).
 function highlightObject (&$rackData, $object_id)
 {