Remove gzdecode() polyfill from includes/GlobalFunctions.php
authorRicordisamoa <ricordisamoa@openmailbox.org>
Thu, 11 Feb 2016 14:45:42 +0000 (15:45 +0100)
committerUmherirrender <umherirrender_de.wp@web.de>
Thu, 11 Feb 2016 19:01:40 +0000 (19:01 +0000)
Unnecessary since PHP 5.4.0

Change-Id: I8423b792488e3b3326ef9b702f1b84c9a2137952

includes/GlobalFunctions.php

index 66201b5..1d9179f 100644 (file)
@@ -92,19 +92,6 @@ if ( !function_exists( 'mb_strrpos' ) ) {
        }
 }
 
-// gzdecode function only exists in PHP >= 5.4.0
-// http://php.net/gzdecode
-if ( !function_exists( 'gzdecode' ) ) {
-       /**
-        * @codeCoverageIgnore
-        * @param string $data
-        * @return string
-        */
-       function gzdecode( $data ) {
-               return gzinflate( substr( $data, 10, -8 ) );
-       }
-}
-
 // hash_equals function only exists in PHP >= 5.6.0
 // http://php.net/hash_equals
 if ( !function_exists( 'hash_equals' ) ) {