Module: Don't emit warnings for module assets

resolves #4286
This commit is contained in:
Johannes Meyer 2020-12-01 09:37:28 +01:00
parent bef52f3f2e
commit a33317aeab
1 changed files with 0 additions and 15 deletions

View File

@ -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)) {