From 3bed5e3cc06139bb7f68f5b03beebb7571b6a9f7 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 11 Nov 2023 20:06:53 +0000 Subject: [PATCH] remove commented code --- Utils/Parser/Markdown/Markdown.php | 43 ------------------------------ 1 file changed, 43 deletions(-) diff --git a/Utils/Parser/Markdown/Markdown.php b/Utils/Parser/Markdown/Markdown.php index 7afda4e58..2c15a72ea 100755 --- a/Utils/Parser/Markdown/Markdown.php +++ b/Utils/Parser/Markdown/Markdown.php @@ -4435,14 +4435,6 @@ class Markdown return null; } - /* - protected function unmarkedText($text) - { - $inline = $this->inlineText($text); - return $this->element($inline['element']); - } - */ - /** * Handle "handler" * @@ -4484,18 +4476,6 @@ class Markdown return $element; } - /* - protected function handleElementRecursive(array $element) - { - return $this->elementApplyRecursive('handle', $element); - } - - protected function handleElementsRecursive(array $elements) - { - return $this->elementsApplyRecursive('handle', $elements); - } - */ - /** * Handle element recursiveley * @@ -4535,12 +4515,10 @@ class Markdown protected function elementApplyRecursiveDepthFirst(string|\Closure $closure, array $element) : array { if (isset($element['elements'])) { - //$element['elements'] = $this->elementsApplyRecursiveDepthFirst($closure, $element['elements']); foreach ($element['elements'] as &$e) { $e = $this->elementApplyRecursiveDepthFirst($closure, $e); } } elseif (isset($element['element'])) { - //$element['element'] = $this->elementsApplyRecursiveDepthFirst($closure, $element['element']); foreach ($element['element'] as &$e) { $e = $this->elementApplyRecursiveDepthFirst($closure, $e); } @@ -4549,27 +4527,6 @@ class Markdown return \is_string($closure) ? $this->{$closure}($element) : $closure($element); } - /* - protected function elementsApplyRecursive($closure, array $elements) - { - foreach ($elements as &$element) { - $element = $this->elementApplyRecursive($closure, $element); - } - - return $elements; - } - - - protected function elementsApplyRecursiveDepthFirst($closure, array $elements) - { - foreach ($elements as &$element) { - $element = $this->elementApplyRecursiveDepthFirst($closure, $element); - } - - return $elements; - } - */ - /** * Render element *