(legacy) ditch compare_interface_friendly_names

This commit is contained in:
Ad Schellevis 2016-08-11 10:58:44 +02:00
parent 26a6680224
commit 14d53f5b8d
2 changed files with 0 additions and 18 deletions

View File

@ -741,23 +741,6 @@ function get_configured_vips_list()
return $alias_list;
}
/* comparison function for sorting by the order in which interfaces are normally created */
function compare_interface_friendly_names($a, $b)
{
if ($a == $b) {
return 0;
} elseif ($a == 'wan') {
return -1;
} elseif ($b == 'wan') {
return 1;
} elseif ($a == 'lan') {
return -1;
} elseif ($b == 'lan') {
return 1;
}
return strnatcmp($a, $b);
}
/* return the configured interfaces list. */
function get_configured_interface_list($only_opt = false, $withdisabled = false)
{

View File

@ -165,7 +165,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
interface_sync_wireless_clones($config['interfaces'][$newifname], false);
}
uksort($config['interfaces'], "compare_interface_friendly_names");
write_config();
header("Location: interfaces_assign.php");
exit;