util: remove unused get_ll_scope()

This commit is contained in:
Franco Fichtner 2021-09-16 08:03:13 +02:00
parent 9b48085538
commit f51957afbb

View File

@ -639,16 +639,6 @@ function is_linklocal($ipaddr)
return (strtolower(substr($ipaddr, 0, 5)) == "fe80:");
}
/* returns scope of a linklocal address */
function get_ll_scope($addr)
{
if (!is_linklocal($addr) || !strstr($addr, "%")) {
return '';
}
list ($ll, $scope) = explode("%", $addr);
return $scope;
}
/* returns true if $ipaddr is a valid literal IPv6 address */
function is_literalipaddrv6($ipaddr)
{