From ecdcdcc69f514b0c7bdba6de3ced6ea514b4f4a1 Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Thu, 3 Sep 2015 18:15:19 +0100 Subject: [PATCH] VisualEditorDataModule: remove $msgKeys This is apparently no longer used. Change-Id: Iccf6e00a4e96aece9a81f1f7f91024faf15b0798 --- VisualEditorDataModule.php | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/VisualEditorDataModule.php b/VisualEditorDataModule.php index 8c6badb5e9..a0c5aebaa0 100644 --- a/VisualEditorDataModule.php +++ b/VisualEditorDataModule.php @@ -67,8 +67,6 @@ class VisualEditorDataModule extends ResourceLoaderModule { } protected function getMessageInfo() { - $msgKeys = array(); - // Messages that just require simple parsing $msgArgs = array( 'minoredit' => array( 'minoredit' ), @@ -101,23 +99,13 @@ class VisualEditorDataModule extends ResourceLoaderModule { $title = Title::newFromText( 'Dwimmerlaik' ); Hooks::run( 'EditPageCopyrightWarning', array( $title, &$copywarnMsg ) ); - // Keys used in copyright warning - $msgKeys[] = 'copyrightpage'; - $msgKeys[] = $copywarnMsg[0]; // Normalise to 'copyrightwarning' so we have a consistent key in the front-end. $msgArgs[ 'copyrightwarning' ] = $copywarnMsg; // Citation tools $msgVals['visualeditor-cite-tool-definition.json'] = json_encode( self::getCitationTools() ); - $msgKeys = array_values( array_unique( array_merge( - $msgKeys, - array_keys( $msgArgs ), - array_keys( $msgVals ) - ) ) ); - return array( - 'keys' => $msgKeys, 'args' => $msgArgs, 'vals' => $msgVals, ); @@ -140,7 +128,6 @@ class VisualEditorDataModule extends ResourceLoaderModule { if ( !isset( $tool->title ) ) { $tool->title = wfMessage( 'visualeditor-cite-tool-name-' . $tool->name )->text(); - $msgKeys[] = $tool->title; } $citationTools[] = $tool; }