mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-23 15:16:56 +00:00
Remove unused environment
Change-Id: I8c94d04c58356afac901de5ed207f110f1b753f7
This commit is contained in:
parent
62506236ec
commit
6d5ddff353
|
@ -623,39 +623,6 @@ class BaseMappings {
|
|||
"eqnarray" => [ 'EqnArray', null, true, true, 'rcl', null, '.5em' ]
|
||||
];
|
||||
|
||||
// Mathtools environment actually from Mathtools mappings tbd refactor
|
||||
private const ENVIRONMNENTMT = [
|
||||
'dcases' => [ 'array', null, '\\{', '', 'll', null, '.2em', 'D' ],
|
||||
'rcases' => [ 'array', null, '', '\\}', 'll', null, '.2em' ],
|
||||
'drcases' => [ 'array', null, '', '\\}', 'll', null, '.2em', 'D' ],
|
||||
'dcases*' => [ 'Cases', null, '{', '', 'D' ],
|
||||
'rcases*' => [ 'Cases', null, '', '}' ],
|
||||
'drcases*' => [ 'Cases', null, '', '}', 'D' ],
|
||||
'cases*' => [ 'Cases', null, '{', '' ],
|
||||
'matrix*' => [ 'MtMatrix', null, null, null ],
|
||||
'pmatrix*' => [ 'MtMatrix', null, '(', ')' ],
|
||||
'bmatrix*' => [ 'MtMatrix', null, '[', ']' ],
|
||||
'Bmatrix*' => [ 'MtMatrix', null, '\\{', '\\}' ],
|
||||
'vmatrix*' => [ 'MtMatrix', null, '\\vert', '\\vert' ],
|
||||
'Vmatrix*' => [ 'MtMatrix', null, '\\Vert', '\\Vert' ],
|
||||
'smallmatrix*' => [ 'MtSmallMatrix', null, null, null ],
|
||||
'psmallmatrix' => [ 'MtSmallMatrix', null, '(', ')', 'c' ],
|
||||
'psmallmatrix*' => [ 'MtSmallMatrix', null, '(', ')' ],
|
||||
'bsmallmatrix' => [ 'MtSmallMatrix', null, '[', ']', 'c' ],
|
||||
'bsmallmatrix*' => [ 'MtSmallMatrix', null, '[', ']' ],
|
||||
'Bsmallmatrix' => [ 'MtSmallMatrix', null, '\\{', '\\}', 'c' ],
|
||||
'Bsmallmatrix*' => [ 'MtSmallMatrix', null, '\\{', '\\}' ],
|
||||
'vsmallmatrix' => [ 'MtSmallMatrix', null, '\\vert', '\\vert', 'c' ],
|
||||
'vsmallmatrix*' => [ 'MtSmallMatrix', null, '\\vert', '\\vert' ],
|
||||
'Vsmallmatrix' => [ 'MtSmallMatrix', null, '\\Vert', '\\Vert', 'c' ],
|
||||
'Vsmallmatrix*' => [ 'MtSmallMatrix', null, '\\Vert', '\\Vert' ],
|
||||
'crampedsubarray' => [ 'array', null, null, null, null, '0em', '0.1em', 'S\'', 1 ],
|
||||
'multlined' => 'MtMultlined',
|
||||
'spreadlines' => [ 'SpreadLines', true ],
|
||||
'lgathered' => [ 'amsEqnArray', null, null, null, 'l', null, '.5em', 'D' ],
|
||||
'rgathered' => [ 'amsEqnArray', null, null, null, 'r', null, '.5em', 'D' ],
|
||||
];
|
||||
|
||||
private const COLORS = [
|
||||
'Apricot' => '#FBB982',
|
||||
'Aquamarine' => '#00B5BE',
|
||||
|
@ -801,7 +768,6 @@ class BaseMappings {
|
|||
"mathchar0mi" => self::MATHCHAR0MI,
|
||||
"mathchar0mo" => self::MATHCHAR0MO,
|
||||
"environment" => self::ENVIRONMENT,
|
||||
"environmentMT" => self::ENVIRONMNENTMT,
|
||||
"colors" => self::COLORS,
|
||||
"cancel" => self::CANCEL,
|
||||
"mhchem" => self::MHCHEM,
|
||||
|
@ -840,10 +806,6 @@ class BaseMappings {
|
|||
return MMLutil::getMappingByKeySimple( $key, self::MACROS, true );
|
||||
}
|
||||
|
||||
public static function getMTenvByKey( $key ) {
|
||||
return MMLutil::getMappingByKeySimple( $key, self::ENVIRONMNENTMT );
|
||||
}
|
||||
|
||||
public static function getSpecialByKey( $key ) {
|
||||
$ret = MMLutil::getMappingByKeySimple( $key, self::SPECIAL );
|
||||
// Only activated elements get found in this mapping currently.
|
||||
|
|
Loading…
Reference in a new issue