diff --git a/Math.hooks.php b/Math.hooks.php
index 60eb2f0..cf20545 100644
--- a/Math.hooks.php
+++ b/Math.hooks.php
@@ -158,28 +158,6 @@ class MathHooks {
return true;
}
- public static function onGetBetaPreferences( $user, &$preferences ) {
- global $wgExtensionAssetsPath;
- if ( class_exists( 'VisualEditorHooks' ) ) {
- // Add beta feature if VisualEditor is installed
- $dir = RequestContext::getMain()->getLanguage()->getDir();
- $preferences['math-enable-visualeditor'] = array(
- 'version' => '1.0',
- 'label-message' => 'math-preference-mwmathinspector-label',
- 'desc-message' => 'math-preference-mwmathinspector-description',
- 'screenshot' => $wgExtensionAssetsPath .
- "/Math/images/betafeatures-icon-VisualEditor-formulae-$dir.svg",
- 'info-message' => 'math-preference-mwmathinspector-info-link',
- 'discussion-message' => 'math-preference-mwmathinspector-info-link',
- 'requirements' => array(
- 'betafeatures' => array(
- 'visualeditor-enable',
- ),
- ),
- );
- }
- }
-
/**
* List of message keys for the various math output settings.
*
diff --git a/Math.php b/Math.php
index 34a0ef4..991d4bb 100644
--- a/Math.php
+++ b/Math.php
@@ -179,7 +179,6 @@ $wgMathDisableTexFilter = false;
$wgExtensionFunctions[] = 'MathHooks::setup';
$wgHooks['ParserFirstCallInit'][] = 'MathHooks::onParserFirstCallInit';
-$wgHooks['GetBetaFeaturePreferences'][] = 'MathHooks::onGetBetaPreferences';
$wgHooks['GetPreferences'][] = 'MathHooks::onGetPreferences';
$wgHooks['LoadExtensionSchemaUpdates'][] = 'MathHooks::onLoadExtensionSchemaUpdates';
$wgHooks['ParserTestTables'][] = 'MathHooks::onParserTestTables';
@@ -469,4 +468,4 @@ $wgResourceModules['ext.math.visualEditor'] = array(
'targets' => array( 'desktop', 'mobile' ),
) + $moduleTemplate;
-$wgVisualEditorPreferenceModules['math-enable-visualeditor'] = 'ext.math.visualEditor';
+$wgVisualEditorPluginModules[] = 'ext.math.visualEditor';
diff --git a/images/betafeatures-icon-VisualEditor-formulae-ltr.svg b/images/betafeatures-icon-VisualEditor-formulae-ltr.svg
deleted file mode 100644
index 72d66ae..0000000
--- a/images/betafeatures-icon-VisualEditor-formulae-ltr.svg
+++ /dev/null
@@ -1,184 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/images/betafeatures-icon-VisualEditor-formulae-rtl.svg b/images/betafeatures-icon-VisualEditor-formulae-rtl.svg
deleted file mode 100644
index 15a2aa9..0000000
--- a/images/betafeatures-icon-VisualEditor-formulae-rtl.svg
+++ /dev/null
@@ -1,238 +0,0 @@
-
-
-
-
\ No newline at end of file