Remove unused environment

Change-Id: I8c94d04c58356afac901de5ed207f110f1b753f7
This commit is contained in:
physikerwelt 2024-11-21 17:26:14 +01:00
parent 62506236ec
commit 6d5ddff353
No known key found for this signature in database
GPG key ID: FCC793EFFA5FB13C

View file

@ -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.