Remove unused method from SettingsController

[MAILPOET-5741]
This commit is contained in:
Rostislav Wolny
2024-02-22 14:33:39 +01:00
committed by Rostislav Wolný
parent 6e887287e5
commit f2dd786d19

View File

@@ -38,8 +38,6 @@ class SettingsController {
*/ */
const FLEX_GAP = '16px'; const FLEX_GAP = '16px';
private string $availableStylesheets = '';
private ThemeController $themeController; private ThemeController $themeController;
/** /**
@@ -95,13 +93,6 @@ class SettingsController {
]; ];
} }
public function getAvailableStylesheets(): string {
if ($this->availableStylesheets) return $this->availableStylesheets;
$coreThemeData = \WP_Theme_JSON_Resolver::get_core_data();
$this->availableStylesheets = $coreThemeData->get_stylesheet();
return $this->availableStylesheets;
}
/** /**
* @return array{width: string, background: string, padding: array{bottom: string, left: string, right: string, top: string}} * @return array{width: string, background: string, padding: array{bottom: string, left: string, right: string, top: string}}
*/ */