interfaces.inc: remove unused code, related to https://github.com/opnsense/core/issues/4171

This commit is contained in:
Ad Schellevis 2020-06-16 17:44:01 +02:00
parent e2f6272957
commit b2ee6fa99f

View File

@ -201,18 +201,6 @@ function interface_vlan_configure(&$vlan)
interfaces_bring_up($if);
$members = array($if);
/* VLAN may be on top of another type of aggregation */
if (isset($config['laggs']['lagg'])) {
foreach ($config['laggs']['lagg'] as $lagg) {
if ($if == $lagg['laggif']) {
$members = explode(',', $lagg['members']);
break;
}
}
}
if (!empty($vlanif) && does_interface_exist($vlanif)) {
legacy_interface_destroy($vlanif);
}