Merge "Clean up unused constants and outdated comments"

This commit is contained in:
jenkins-bot 2022-04-07 18:19:28 +00:00 committed by Gerrit Code Review
commit 1e75d6f373
3 changed files with 2 additions and 12 deletions

View File

@ -22,8 +22,7 @@ final class Constants {
*/
public const SKIN_NAME_LEGACY = 'vector';
// These are tightly coupled to PREF_KEY_SKIN_VERSION and skin.json's configs. See skin.json for
// documentation.
// These are used to provide different default skin for new users.
/**
* @var string
*/
@ -38,6 +37,7 @@ final class Constants {
*/
public const SERVICE_FEATURE_MANAGER = 'Vector.FeatureManager';
// These are tightly coupled to skin.json's configs. See skin.json for documentation.
/**
* @var string
*/
@ -61,11 +61,6 @@ final class Constants {
*/
public const PREF_KEY_SKIN = 'skin';
/**
* @var string
*/
public const PREF_KEY_SKIN_VERSION = 'VectorSkinVersion';
/**
* @var string
*/

View File

@ -668,8 +668,6 @@ class Hooks {
* Gets whether the current skin version is the legacy version.
* Should mirror SkinVector::isLegacy
*
* @see VectorServices::getFeatureManager
*
* @param string $skinName hint that can be used to detect modern vector.
* @return bool
*/

View File

@ -27,9 +27,6 @@ use Vector\SkinVectorLegacy;
* @coversDefaultClass \Vector\Hooks
*/
class VectorHooksTest extends MediaWikiIntegrationTestCase {
private const HIDE_IF = [ '!==', 'skin', Constants::SKIN_NAME_LEGACY ];
private const SKIN_PREFS_SECTION = 'rendering/skin/skin-prefs';
/**
* @param bool $excludeMainPage