From 2fcb815416bbc30b77e23633956f3b7899c8b78e Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Mon, 12 Nov 2018 17:50:35 +0100 Subject: [PATCH] interfaces: delete unused --- src/etc/inc/interfaces.inc | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/etc/inc/interfaces.inc b/src/etc/inc/interfaces.inc index 5b1999c35..7b5fed579 100644 --- a/src/etc/inc/interfaces.inc +++ b/src/etc/inc/interfaces.inc @@ -4052,27 +4052,6 @@ function get_interface_subnet($interface = 'wan') return null; } -function get_interface_subnetv6($interface = 'wan') -{ - $realif = get_real_interface($interface, 'inet6'); - if (!$realif) { - if (strstr($interface, '_vip')) { - list($interface, $vhid) = explode('_vip', $interface); - $realif = get_real_interface($interface, 'inet6'); - } else { - return null; - } - } - - $ifinfo = legacy_get_interface_addresses($realif); - - if (isset($ifinfo['subnetbits6'])) { - return $ifinfo['subnetbits6']; - } - - return null; -} - /* return true if interface has a gateway */ function interface_has_gateway($friendly) {