mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 00:07:26 +00:00
util: this is unused
This commit is contained in:
parent
66430a8a02
commit
6f6f8397e7
@ -774,29 +774,6 @@ function get_configured_interface_list($only_opt = false, $withdisabled = false)
|
||||
return $iflist;
|
||||
}
|
||||
|
||||
/* return the configured interfaces list. */
|
||||
function get_configured_interface_list_by_realif ($only_opt = false, $withdisabled = false)
|
||||
{
|
||||
global $config;
|
||||
|
||||
$iflist = array();
|
||||
/* if list */
|
||||
if (isset($config['interfaces'])) {
|
||||
foreach (legacy_config_get_interfaces(array("virtual" => false)) as $if => $ifdetail) {
|
||||
if ($only_opt && ($if == "wan" || $if == "lan")) {
|
||||
continue;
|
||||
}
|
||||
if (isset($ifdetail['enable']) || $withdisabled == true) {
|
||||
$tmpif = get_real_interface($if);
|
||||
if (!empty($tmpif)) {
|
||||
$iflist[$tmpif] = $if;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return $iflist;
|
||||
}
|
||||
|
||||
function get_configured_interface_with_descr($only_opt = false, $withdisabled = false)
|
||||
{
|
||||
global $config;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user