Skip to content

Commit c0f1d45

Browse files
committed
Remove mixins storage as they are now handled in the formatter
1 parent d14b214 commit c0f1d45

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/Phug/Compiler.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@
7171
use Phug\Parser\Node\YieldNode;
7272
use Phug\Parser\NodeInterface;
7373
// Utils
74-
use Phug\Util\AssociativeStorage;
7574
use Phug\Util\ModuleContainerInterface;
7675
use Phug\Util\Partial\ModuleContainerTrait;
7776
use Phug\Util\SourceLocation;
@@ -126,11 +125,6 @@ class Compiler implements ModuleContainerInterface, CompilerInterface
126125
*/
127126
private $layout;
128127

129-
/**
130-
* @var AssociativeStorage
131-
*/
132-
private $mixins;
133-
134128
/**
135129
* @var NodeInterface
136130
*/
@@ -161,7 +155,6 @@ public function __construct($options = null)
161155
'parser_class_name' => Parser::class,
162156
'formatter_class_name' => Formatter::class,
163157
'locator_class_name' => FileLocator::class,
164-
'mixins_storage_mode' => AssociativeStorage::REPLACE,
165158
'compiler_modules' => [],
166159
'node_compilers' => [
167160
AssignmentListNode::class => AssignmentListNodeCompiler::class,
@@ -229,11 +222,6 @@ public function __construct($options = null)
229222
$this->setNodeCompiler($className, $handler);
230223
}
231224

232-
$this->mixins = new AssociativeStorage(
233-
'mixin',
234-
$this->getOption('mixins_storage_mode')
235-
);
236-
237225
if ($onCompile = $this->getOption('on_compile')) {
238226
$this->attach(CompilerEvent::COMPILE, $onCompile);
239227
}

0 commit comments

Comments
 (0)