From a33317aeabad1f81b7ea0b8572d2f3f5be4f35eb Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Tue, 1 Dec 2020 09:37:28 +0100 Subject: [PATCH] Module: Don't emit warnings for module assets resolves #4286 --- library/Icinga/Application/Modules/Module.php | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/library/Icinga/Application/Modules/Module.php b/library/Icinga/Application/Modules/Module.php index ade9677c6..6f4003622 100644 --- a/library/Icinga/Application/Modules/Module.php +++ b/library/Icinga/Application/Modules/Module.php @@ -565,11 +565,6 @@ class Module */ protected function requireCssFile($path, $from) { - Logger::warning( - 'Module assets are deprecated since v2.9. Please check if the module "%s" provides a library instead.', - $from - ); - $module = self::get($from); $cssAssetDir = join(DIRECTORY_SEPARATOR, [$module->assetDir, 'css']); foreach ($module->getCssAssets() as $assetPath) { @@ -649,11 +644,6 @@ class Module */ protected function requireJsFile($path, $from) { - Logger::warning( - 'Module assets are deprecated since v2.9. Please check if the module "%s" provides a library instead.', - $from - ); - $module = self::get($from); $jsAssetDir = join(DIRECTORY_SEPARATOR, [$module->assetDir, 'js']); foreach ($module->getJsAssets() as $assetPath) { @@ -1398,11 +1388,6 @@ class Module return $this; } - Logger::warning( - 'Module assets are deprecated since v2.9. Please provide a library' - . ' for the parts you want to make available to other modules.' - ); - $listAssets = function ($type) { $dir = join(DIRECTORY_SEPARATOR, [$this->assetDir, $type]); if (! is_dir($dir)) {