From 3fbf5b49f06826574bfaaefeb3515b3400c4d428 Mon Sep 17 00:00:00 2001 From: Jon Robson Date: Thu, 5 Sep 2024 14:48:58 -0700 Subject: [PATCH] Drop unused code relating to old limited width toggle. Follow up to Ie2617e2fa83b6a888a7a2799cc39f048731dc60d Bug: T367591 Change-Id: I270f1902f40946f31de29777735dee2e10ebfebe --- i18n/en.json | 3 --- i18n/qqq.json | 3 --- includes/Constants.php | 10 ---------- includes/FeatureManagement/FeatureManager.php | 1 - resources/skins.vector.styles/layouts/print.less | 1 - skin.json | 3 --- 6 files changed, 21 deletions(-) diff --git a/i18n/en.json b/i18n/en.json index ac72c95dd..f712d5959 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -63,9 +63,6 @@ "vector-toc-collapsible-button-label": "Toggle the table of contents", "vector-site-nav-label": "Site", "vector-main-menu-label": "Main menu", - "vector-limited-width-toggle": "Toggle limited content width", - "vector-limited-width-toggle-on-popup": "You have switched your layout to full width. To go back to limited width, press this button.", - "vector-limited-width-toggle-off-popup": "You can toggle between a limited width and full width by clicking this button.", "vector-feature-custom-font-size-exclusion-notice" : "This page always uses small font size", "vector-feature-limited-width-exclusion-notice": "The content is as wide as possible for your browser window.", "vector-page-tools-label": "Tools", diff --git a/i18n/qqq.json b/i18n/qqq.json index be9a52864..ec8c0423c 100644 --- a/i18n/qqq.json +++ b/i18n/qqq.json @@ -80,9 +80,6 @@ "vector-toc-collapsible-button-label": "Used as the label for the table of contents collapsible toggle button", "vector-site-nav-label": "Accessible label for site (main menu) nav landmark", "vector-main-menu-label": "Main menu label", - "vector-limited-width-toggle": "Toggle for control to limit content width.", - "vector-limited-width-toggle-on-popup": "Hint that points out the limited width toggle control.", - "vector-limited-width-toggle-off-popup": "Hint that points out the limited width toggle control.", "vector-feature-custom-font-size-exclusion-notice": "Notice when custom font size option is disabled.", "vector-feature-limited-width-exclusion-notice": "Notice when limited width option is disabled.", "vector-page-tools-label": "Label for the page tools pinnable dropdown\n{{identical|Tools}}", diff --git a/includes/Constants.php b/includes/Constants.php index e481f7e0c..b4b3e16f4 100644 --- a/includes/Constants.php +++ b/includes/Constants.php @@ -253,16 +253,6 @@ final class Constants { */ public const PREF_KEY_APPEARANCE_PINNED = 'vector-appearance-pinned'; - /** - * @var string - */ - public const FEATURE_APPEARANCE = 'Appearance'; - - /** - * @var string - */ - public const REQUIREMENT_APPEARANCE = 'Appearance'; - /** * @var string */ diff --git a/includes/FeatureManagement/FeatureManager.php b/includes/FeatureManagement/FeatureManager.php index 79aa6e3ec..a22b6b66c 100644 --- a/includes/FeatureManagement/FeatureManager.php +++ b/includes/FeatureManagement/FeatureManager.php @@ -229,7 +229,6 @@ class FeatureManager { // Note these classes are fixed and cannot be changed at runtime by JavaScript, // only via modification to LocalSettings.php. case Constants::FEATURE_NIGHT_MODE: - case Constants::FEATURE_APPEARANCE: case Constants::FEATURE_LIMITED_WIDTH_CONTENT: case Constants::FEATURE_LANGUAGE_IN_HEADER: case Constants::FEATURE_LANGUAGE_IN_MAIN_PAGE_HEADER: diff --git a/resources/skins.vector.styles/layouts/print.less b/resources/skins.vector.styles/layouts/print.less index fcd9ecf44..833e007bf 100644 --- a/resources/skins.vector.styles/layouts/print.less +++ b/resources/skins.vector.styles/layouts/print.less @@ -11,7 +11,6 @@ #vector-sticky-header, #p-lang-btn, .vector-menu-checkbox, -.vector-limited-width-toggle, // Hide all navigation nav, #vector-page-titlebar-toc, diff --git a/skin.json b/skin.json index 275d19556..9aedaefb7 100644 --- a/skin.json +++ b/skin.json @@ -467,10 +467,7 @@ "mediawiki.jqueryMsg" ], "messages": [ - "vector-limited-width-toggle-on-popup", - "vector-limited-width-toggle-off-popup", "vector-search-loader", - "vector-limited-width-toggle", "vector-toc-beginning", "vector-toc-label", "vector-pin-element-label",