From: Ori Livneh Date: Sun, 13 Dec 2015 21:55:10 +0000 (-0800) Subject: Remove wfGetIP(), deprecated since 1.19 X-Git-Tag: 1.31.0-rc.0~8713 X-Git-Url: http://git.cyclocoop.org/%28%5B%5E//%22%22?a=commitdiff_plain;h=c0238a6b765359d1ea01e39671d700d7049680af;p=lhc%2Fweb%2Fwiklou.git Remove wfGetIP(), deprecated since 1.19 No remaining usage: https://github.com/search?q=%40wikimedia+wfGetIP&type=Code&utf8=%E2%9C%93 Change-Id: I3b8f4b034e23a56f586993549cc5460b28bf6fa7 --- diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 603d259dae..3ca4984e28 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -4093,19 +4093,6 @@ function wfIsInfinity( $str ) { return in_array( $str, $infinityValues ); } -/** - * Work out the IP address based on various globals - * For trusted proxies, use the XFF client IP (first of the chain) - * - * @deprecated since 1.19; call $wgRequest->getIP() directly. - * @return string - */ -function wfGetIP() { - wfDeprecated( __METHOD__, '1.19' ); - global $wgRequest; - return $wgRequest->getIP(); -} - /** * Checks if an IP is a trusted proxy provider. * Useful to tell if X-Forwarded-For data is possibly bogus.