Some refactoring.
[timetracker.git] / WEB-INF / lib / ttTeamHelper.class.php
index fec798a..bbd188f 100644 (file)
@@ -142,7 +142,6 @@ class ttTeamHelper {
   // The getAllUsers obtains all users in a given team.
   static function getAllUsers($team_id, $all_fields = false) {
     $mdb2 = getConnection();
-
     if ($all_fields)
       $sql = "select * from tt_users where team_id = $team_id order by upper(name)";
     else
@@ -347,23 +346,6 @@ class ttTeamHelper {
     return $result;
   }
 
-  // getAllRoles - obtains all roles defined for team.
-  static function getAllRoles($team_id) {
-    $mdb2 = getConnection();
-
-    $result = array();
-    $sql = "select * from tt_roles where team_id = $team_id";
-    $res = $mdb2->query($sql);
-    $result = array();
-    if (!is_a($res, 'PEAR_Error')) {
-      while ($val = $res->fetchRow()) {
-        $result[] = $val;
-      }
-      return $result;
-    }
-    return false;
-  }
-
   // The getActiveClients returns an array of active clients for team.
   static function getActiveClients($team_id, $all_fields = false)
   {