Skip to content

Commit da5270c

Browse files
committed
Remove deprecated spaceless function from extension
1 parent 331188d commit da5270c

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/Extension/TwigPrintExtension.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ public function getFunctions(): array
2828
'echo_endfor' => new TwigFunction('echo_endfor' , $this->getEchoEndFor(...), $options),
2929
'echo_raw' => new TwigFunction('echo_raw' , $this->getEchoRaw(...), $options),
3030
'echo_endraw' => new TwigFunction('echo_endraw' , $this->getEchoEndRaw(...), $options),
31-
'echo_spaceless' => new TwigFunction('echo_spaceless' , $this->getEchoSpaceless(...), $options),
32-
'echo_endspaceless' => new TwigFunction('echo_endspaceless', $this->getEchoEndSpaceless(...), $options),
3331
'echo_extends' => new TwigFunction('echo_extends' , $this->getEchoExtends(...), $options),
3432
'echo_if' => new TwigFunction('echo_if' , $this->getEchoIf(...), $options),
3533
'echo_else' => new TwigFunction('echo_else' , $this->getEchoElse(...), $options),
@@ -223,22 +221,6 @@ public function getEchoEndRaw(): string
223221
return '{% endraw %}';
224222
}
225223

226-
/**
227-
* Print "spaceless" tag
228-
*/
229-
public function getEchoSpaceless(): string
230-
{
231-
return '{% apply spaceless %}';
232-
}
233-
234-
/**
235-
* Print "endspaceless" tag
236-
*/
237-
public function getEchoEndSpaceless(): string
238-
{
239-
return '{% endapply %}';
240-
}
241-
242224
/**
243225
* Converts an array to a twig array expression (string).
244226
* Only in case a value contains '{{' and '}}' the value won't be

0 commit comments

Comments
 (0)