@@ -284,7 +284,6 @@ export function ExplorerMathDocumentMixin<B extends MathDocumentConstructor<HTML
284284 * @constructor
285285 */
286286 constructor ( ...args : any [ ] ) {
287- processSreOptions ( args [ 2 ] ) ;
288287 super ( ...args ) ;
289288 const ProcessBits = ( this . constructor as typeof BaseDocument ) . ProcessBits ;
290289 if ( ! ProcessBits . has ( 'explorer' ) ) {
@@ -329,32 +328,6 @@ export function ExplorerMathDocumentMixin<B extends MathDocumentConstructor<HTML
329328
330329}
331330
332- //
333- // TODO(v3.2): This is for backward compatibility of old option parameters.
334- //
335- /**
336- * Processes old a11y options for backward compatibility.
337- * @param {OptionList } options The options to process.
338- */
339- function processSreOptions ( options : OptionList ) {
340- if ( ! options || ! options . a11y ) {
341- return ;
342- }
343- if ( ! options . sre ) {
344- options . sre = { } ;
345- }
346- if ( options . a11y . locale ) {
347- options . sre . locale = options . a11y . locale ;
348- delete options . a11y . locale ;
349- }
350- if ( options . a11y . speechRules ) {
351- let [ domain , style ] = ( options . a11y . speechRules as string ) . split ( '-' ) ;
352- options . sre . domain = domain ;
353- options . sre . style = style ;
354- delete options . a11y . speechRules ;
355- }
356- }
357-
358331
359332/*==========================================================================*/
360333
@@ -551,19 +524,6 @@ export function setA11yOption(document: HTMLDOCUMENT, option: string, value: str
551524 break ;
552525 }
553526 break ;
554- //
555- // TODO(v3.2): These two cases should be handled directly in the menu
556- // variable actions.
557- //
558- case 'speechRules' :
559- let [ domain , style ] = ( value as string ) . split ( '-' ) ;
560- document . options . sre . domain = domain ;
561- document . options . sre . style = style ;
562- break ;
563- case 'locale' :
564- document . options . sre . locale = value ;
565- SRE . setupEngine ( { locale : value as string } ) ;
566- break ;
567527 default :
568528 document . options . a11y [ option ] = value ;
569529 }
0 commit comments