From 096fe88993f4dd6dbb93f18f506a69363a399371 Mon Sep 17 00:00:00 2001 From: ArtBaltai Date: Thu, 20 Feb 2020 21:59:56 +0300 Subject: [PATCH] Replace usage of deprecated Page in favor of WikiPage/Article Use Article instead object/Page delete deprecated unused method Bug: T239975 Change-Id: Ic3c8e3bee66c63177f51621bf727029a87b51105 --- includes/AbuseFilter.php | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/includes/AbuseFilter.php b/includes/AbuseFilter.php index 548b38733..df454eebf 100644 --- a/includes/AbuseFilter.php +++ b/includes/AbuseFilter.php @@ -1586,23 +1586,6 @@ class AbuseFilter { return $display; } - /** - * @deprecated Use VariableGenerator::addEditVars - * @param Title $title - * @param WikiPage|\Article|null $page - * @return AbuseFilterVariableHolder - */ - public static function getEditVars( Title $title, object $page = null ) { - if ( $page !== null && !$page instanceof WikiPage ) { - $page = $page->getPage(); - } - - $vars = new AbuseFilterVariableHolder(); - $generator = new VariableGenerator( $vars ); - - return $generator->addEditVars( $title, $page )->getVariableHolder(); - } - /** * @param AbuseFilterVariableHolder|array $vars * @param IContextSource $context