Skip to content

Commit 75b3923

Browse files
committed
no reason to throw this message. it'll get noisy
1 parent 10d4bf5 commit 75b3923

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

src/PatternLab/PatternEngine/Twig/TwigUtil.php

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,6 @@
1818

1919
class TwigUtil {
2020

21-
/**
22-
* Write a warning if a dir doesn't exist
23-
* @param {String} the dir that doesn't exist
24-
* @param {String} the type of dir
25-
*/
26-
protected static function dirNotExist($dir, $type) {
27-
$dirHR = Console::getHumanReadablePath($dir);
28-
Console::writeWarning("the path <path>".$dirHR."</path> doesn't exist so ".$type." won't be loaded...");
29-
}
30-
3121
/**
3222
* Load custom date formats for Twig
3323
* @param {Instance} an instance of the twig engine
@@ -100,10 +90,6 @@ public static function loadFilters($instance) {
10090

10191
}
10292

103-
} else {
104-
105-
self::dirNotExist($filterDir,"filters");
106-
10793
}
10894

10995
return $instance;
@@ -147,10 +133,6 @@ public static function loadFunctions($instance) {
147133

148134
}
149135

150-
} else {
151-
152-
self::dirNotExist($functionDir,"functions");
153-
154136
}
155137

156138
return $instance;
@@ -189,10 +171,6 @@ public static function loadMacros($instance) {
189171

190172
}
191173

192-
} else {
193-
194-
self::dirNotExist($macroDir,"macros");
195-
196174
}
197175

198176
return $instance;
@@ -234,10 +212,6 @@ public static function loadTags($instance) {
234212

235213
}
236214

237-
} else {
238-
239-
self::dirNotExist($tagDir,"tags");
240-
241215
}
242216

243217
return $instance;
@@ -281,10 +255,6 @@ public static function loadTests($instance) {
281255

282256
}
283257

284-
} else {
285-
286-
self::dirNotExist($testDir,"tests");
287-
288258
}
289259

290260
return $instance;

0 commit comments

Comments
 (0)