Skip to content

Commit 552c7cf

Browse files
committed
remove arguments from render method
1 parent 37ff51c commit 552c7cf

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/Nette/WebLoader.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -70,23 +70,10 @@ protected function getUrl(File $file): string
7070
*/
7171
public function render(): void
7272
{
73-
$hasArgs = func_num_args() > 0;
74-
75-
if ($hasArgs) {
76-
$backup = $this->compiler->getFileCollection();
77-
$newFiles = new FileCollection($backup->getRoot());
78-
$newFiles->addFiles(func_get_args());
79-
$this->compiler->setFileCollection($newFiles);
80-
}
81-
8273
$file = $this->compiler->generate();
8374
if ($file) {
8475
echo $this->getElement($file), PHP_EOL;
8576
}
86-
87-
if ($hasArgs) {
88-
$this->compiler->setFileCollection($backup);
89-
}
9077
}
9178

9279

0 commit comments

Comments
 (0)