Remove wfMakeStaticArrayFile()
authorKunal Mehta <legoktm@member.fsf.org>
Sat, 18 Aug 2018 05:32:19 +0000 (22:32 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Sat, 18 Aug 2018 06:07:17 +0000 (23:07 -0700)
Replaced by the StaticArrayWriter class.

Bug: T200626
Change-Id: I7c02cf3a7dda2804d2eb8d51716254bd78b7544c

includes/GlobalFunctions.php

index 433cd2b..d215e9f 100644 (file)
@@ -30,7 +30,6 @@ use MediaWiki\Session\SessionManager;
 use MediaWiki\MediaWikiServices;
 use MediaWiki\Shell\Shell;
 use Wikimedia\ScopedCallback;
-use Wikimedia\StaticArrayWriter;
 use Wikimedia\Rdbms\DBReplicationWaitError;
 use Wikimedia\WrappedString;
 
@@ -2675,17 +2674,6 @@ function wfGetPrecompiledData( $name ) {
        return false;
 }
 
-/**
- * @deprecated since 1.32 use StaticArrayWriter instead
- * @since 1.32
- * @param string[] $data Array with string keys/values to export
- * @param string $header
- * @return string PHP code
- */
-function wfMakeStaticArrayFile( array $data, $header = 'Automatically generated' ) {
-       return ( new StaticArrayWriter() )->create( $data, $header );
-}
-
 /**
  * Make a cache key for the local wiki.
  *