Commit 14d53f5b authored by Ad Schellevis's avatar Ad Schellevis

(legacy) ditch compare_interface_friendly_names

parent 26a66802
......@@ -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)
{
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment