From 75c375566665e174ad2a7e06b4ce8d530d771692 Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Fri, 17 Aug 2018 22:32:19 -0700 Subject: [PATCH] Remove wfMakeStaticArrayFile() Replaced by the StaticArrayWriter class. Bug: T200626 Change-Id: I7c02cf3a7dda2804d2eb8d51716254bd78b7544c --- includes/GlobalFunctions.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 433cd2bbd6..d215e9f56e 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -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. * -- 2.20.1