remove commented code

This commit is contained in:
Dennis Eichhorn 2023-11-11 20:06:53 +00:00
parent bf235e34ee
commit 3bed5e3cc0

View File

@ -4435,14 +4435,6 @@ class Markdown
return null; return null;
} }
/*
protected function unmarkedText($text)
{
$inline = $this->inlineText($text);
return $this->element($inline['element']);
}
*/
/** /**
* Handle "handler" * Handle "handler"
* *
@ -4484,18 +4476,6 @@ class Markdown
return $element; 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 * Handle element recursiveley
* *
@ -4535,12 +4515,10 @@ class Markdown
protected function elementApplyRecursiveDepthFirst(string|\Closure $closure, array $element) : array protected function elementApplyRecursiveDepthFirst(string|\Closure $closure, array $element) : array
{ {
if (isset($element['elements'])) { if (isset($element['elements'])) {
//$element['elements'] = $this->elementsApplyRecursiveDepthFirst($closure, $element['elements']);
foreach ($element['elements'] as &$e) { foreach ($element['elements'] as &$e) {
$e = $this->elementApplyRecursiveDepthFirst($closure, $e); $e = $this->elementApplyRecursiveDepthFirst($closure, $e);
} }
} elseif (isset($element['element'])) { } elseif (isset($element['element'])) {
//$element['element'] = $this->elementsApplyRecursiveDepthFirst($closure, $element['element']);
foreach ($element['element'] as &$e) { foreach ($element['element'] as &$e) {
$e = $this->elementApplyRecursiveDepthFirst($closure, $e); $e = $this->elementApplyRecursiveDepthFirst($closure, $e);
} }
@ -4549,27 +4527,6 @@ class Markdown
return \is_string($closure) ? $this->{$closure}($element) : $closure($element); 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 * Render element
* *