mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SyntaxHighlight_GeSHi
synced 2024-11-28 08:10:50 +00:00
Remove 2 unused functions deprecated 5 years ago
Change-Id: I8dc549f3c681616a8331c0666c60972db9ff41bf
This commit is contained in:
parent
49b74bff7f
commit
b591e2cdab
|
@ -554,26 +554,5 @@ class SyntaxHighlight {
|
||||||
'targets' => [ 'desktop', 'mobile' ],
|
'targets' => [ 'desktop', 'mobile' ],
|
||||||
] );
|
] );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Backward-compatibility shim for extensions.
|
|
||||||
* @deprecated since MW 1.25
|
|
||||||
*/
|
|
||||||
public static function prepare( $text, $lang ) {
|
|
||||||
wfDeprecated( __METHOD__ );
|
|
||||||
return new GeSHi( self::highlight( $text, $lang )->getValue() );
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Backward-compatibility shim for extensions.
|
|
||||||
* @deprecated since MW 1.25
|
|
||||||
* @param GeSHi $geshi
|
|
||||||
* @return string
|
|
||||||
*/
|
|
||||||
public static function buildHeadItem( $geshi ) {
|
|
||||||
wfDeprecated( __METHOD__ );
|
|
||||||
$geshi->parse_code();
|
|
||||||
return '';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
class_alias( SyntaxHighlight::class, 'SyntaxHighlight_GeSHi' );
|
class_alias( SyntaxHighlight::class, 'SyntaxHighlight_GeSHi' );
|
||||||
|
|
Loading…
Reference in a new issue