remove unecessary function

This commit is contained in:
SourceDoctor 2020-06-16 21:13:56 +02:00
parent d009c60004
commit e911eef0c8
7 changed files with 6 additions and 22 deletions

View File

@ -1332,21 +1332,6 @@ function get_arrays_with_seafile($device, $app_id, $category)
return get_arrays_with_application($device, $app_id, $app_name, $category);
}
/**
* Get all dhcp data from the collected
* rrd files.
*
* @param array $device device for which we get the rrd's
* @param int $app_id application id on the device
* @param string $category which category of dhcp graphs are searched
* @return array list of dhcp data
*/
function get_arrays_with_dhcpstats($device, $app_id, $category)
{
$app_name = 'dhcp-stats';
return get_arrays_with_application($device, $app_id, $app_name, $category);
}
/**
* Get all mdadm arrays from the collected
* rrd files.

View File

@ -15,7 +15,7 @@ $printtotal = 0;
$addarea = 1;
$transparency = 15;
$arrays = get_arrays_with_dhcpstats($device, $app_id, $category);
$arrays = get_arrays_with_application($device, $app_id, $name, $category);
$int=0;
while (isset($arrays[$int])) {

View File

@ -15,7 +15,7 @@ $printtotal = 0;
$addarea = 1;
$transparency = 15;
$arrays = get_arrays_with_dhcpstats($device, $app_id, $category);
$arrays = get_arrays_with_application($device, $app_id, $name, $category);
$int=0;
while (isset($arrays[$int])) {

View File

@ -15,7 +15,7 @@ $printtotal = 0;
$addarea = 1;
$transparency = 15;
$arrays = get_arrays_with_dhcpstats($device, $app_id, $category);
$arrays = get_arrays_with_application($device, $app_id, $name, $category);
$int=0;
while (isset($arrays[$int])) {

View File

@ -16,7 +16,7 @@ $addarea = 1;
$transparency = 15;
$arrays = get_arrays_with_dhcpstats($device, $app_id, $category);
$arrays = get_arrays_with_application($device, $app_id, $name, $category);
$int=0;
while (isset($arrays[$int])) {

View File

@ -15,8 +15,7 @@ $printtotal = 0;
$addarea = 1;
$transparency = 15;
$arrays = get_arrays_with_dhcpstats($device, $app_id, $category);
$arrays = get_arrays_with_application($device, $app_id, $name, $category);
$int=0;
while (isset($arrays[$int])) {

View File

@ -16,7 +16,7 @@ $addarea = 1;
$transparency = 15;
$arrays = get_arrays_with_dhcpstats($device, $app_id, $category);
$arrays = get_arrays_with_application($device, $app_id, $name, $category);
$int=0;
while (isset($arrays[$int])) {