removed obsolete code

This commit is contained in:
Fabien Potencier
2016-10-20 08:16:18 -07:00
parent 0e6740616f
commit 582cf0bda3
+1 -7
View File
@@ -160,13 +160,7 @@ class Twig_Loader_Filesystem implements Twig_LoaderInterface, Twig_ExistsLoaderI
return true;
}
try {
return false !== $this->findTemplate($name, false);
} catch (Twig_Error_Loader $exception) {
@trigger_error(sprintf('In %s::findTemplate(), you must accept a second argument that when set to "false" returns "false" instead of throwing an exception. Not supporting this argument is deprecated since version 1.27.', get_class($this)), E_USER_DEPRECATED);
return false;
}
return false !== $this->findTemplate($name, false);
}
/**