X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flibs%2FIP.php;h=e9f0258fe65fe25ca5510bd0910595eb1699234d;hb=f6a6b95dbdc8515fd45c41d36f8622b52af0e5d2;hp=da525e71cd566f8dae37bfae4b09d0c52effbd13;hpb=8c98f517782610282564116b1c67ff4c4c7e0a63;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/libs/IP.php b/includes/libs/IP.php index da525e71cd..e9f0258fe6 100644 --- a/includes/libs/IP.php +++ b/includes/libs/IP.php @@ -115,19 +115,6 @@ class IP { || preg_match( '/^' . RE_IPV6_ADD . '$/', $ip ) ); } - /** - * Validate an IP range (valid address with a valid CIDR prefix). - * SIIT IPv4-translated addresses are rejected. - * @note canonicalize() tries to convert translated addresses to IPv4. - * - * @deprecated since 1.30. Use the equivalent IP::isValidRange(). - * @param string $ipRange - * @return bool True if it is valid - */ - public static function isValidBlock( $ipRange ) { - return self::isValidRange( $ipRange ); - } - /** * Validate an IP range (valid address with a valid CIDR prefix). * SIIT IPv4-translated addresses are rejected.