projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
587063e
)
remove old code for setting all optimizers
author
nikic
<+@ni-po.com>
Tue, 8 Feb 2011 20:48:51 +0000 (21:48 +0100)
committer
Fabien Potencier
<fabien.potencier@gmail.com>
Fri, 18 Feb 2011 08:32:29 +0000 (09:32 +0100)
lib/Twig/NodeVisitor/Optimizer.php
patch
|
blob
|
history
diff --git
a/lib/Twig/NodeVisitor/Optimizer.php
b/lib/Twig/NodeVisitor/Optimizer.php
index
87b38e2
..
a683f4a
100644
(file)
--- a/
lib/Twig/NodeVisitor/Optimizer.php
+++ b/
lib/Twig/NodeVisitor/Optimizer.php
@@
-37,9
+37,7
@@
class Twig_NodeVisitor_Optimizer implements Twig_NodeVisitorInterface
*/
public function __construct($optimizers = -1)
{
- if (null === $optimizers) {
- $mode = self::OPTIMIZE_ALL;
- } elseif (!is_int($optimizers) || $optimizers > 2) {
+ if (!is_int($optimizers) || $optimizers > 2) {
throw new InvalidArgumentException(sprintf('Optimizer mode "%s" is not valid.', $optimizers));
}