Skip to content

Commit 8188fb6

Browse files
committed
remove dead code
1 parent 269ea08 commit 8188fb6

File tree

1 file changed

+3
-19
lines changed

1 file changed

+3
-19
lines changed

interface/web/dashboard/dashlets/limits.php

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public function show($limit_to_client_id = 0)
99
$limits = array();
1010

1111
/* Limits to be shown*/
12-
12+
1313
$limits[] = array('field' => 'limit_mailquota',
1414
'db_table' => 'mail_user',
1515
'db_where' => 'quota > 0', /* Count only posive value of quota, negative value -1 is unlimited */
@@ -75,7 +75,7 @@ public function show($limit_to_client_id = 0)
7575
'db_table' => 'web_domain',
7676
'db_where' => 'hd_quota > 0', /* Count only posive value of quota, negative value -1 is unlimited */
7777
'q_type' => 'hd_quota');
78-
78+
7979
$limits[] = array('field' => 'limit_web_domain',
8080
'db_table' => 'web_domain',
8181
'db_where' => "type = 'vhost'");
@@ -112,7 +112,7 @@ public function show($limit_to_client_id = 0)
112112
'db_table' => 'web_database',
113113
'db_where' => 'database_quota > 0', /* Count only posive value of quota, negative value -1 is unlimited */
114114
'q_type' => 'database_quota');
115-
115+
116116
$limits[] = array('field' => 'limit_database',
117117
'db_table' => 'web_database',
118118
'db_where' => "");
@@ -226,20 +226,4 @@ public function _get_assigned_quota($limit, $limit_to_client_id)
226226
}
227227
return $quotaMB;
228228
}
229-
230-
/**
231-
* Lookup a client's group + all groups he is reselling.
232-
*
233-
* @return string Comma separated list of groupid's
234-
*/
235-
function clientid_to_groups_list($client_id) {
236-
global $app;
237-
238-
if ($client_id != null) {
239-
// Get the clients groupid, and incase it's a reseller the groupid's of it's clients.
240-
$group = $app->db->queryOneRecord("SELECT GROUP_CONCAT(groupid) AS groups FROM `sys_group` WHERE client_id IN (SELECT client_id FROM `client` WHERE client_id=? OR parent_client_id=?)", $client_id, $client_id);
241-
return $group['groups'];
242-
}
243-
return null;
244-
}
245229
}

0 commit comments

Comments
 (0)