]> BookStack Code Mirror - bookstack/blobdiff - app/Util/HtmlDocument.php
respective book and chapter structure added.
[bookstack] / app / Util / HtmlDocument.php
index ad5dacd82f3c23744bbf9992396fd859c822473f..b8c53d43916294dccf63ed3821222f2888edf22d 100644 (file)
@@ -149,19 +149,4 @@ class HtmlDocument
     {
         return $this->document->saveHTML($node);
     }
-
-    /**
-     * Adopt the given nodes into this document.
-     * @param DOMNode[] $nodes
-     * @return DOMNode[]
-     */
-    public function adoptNodes(array $nodes): array
-    {
-        $adopted = [];
-        foreach ($nodes as $node) {
-            $adopted[] = $this->document->importNode($node, true);
-        }
-
-        return $adopted;
-    }
 }