From a82b90f57640ce2424bd8ca50c0ed0a20bb3cc69 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 12 Aug 2012 08:44:20 -0400 Subject: Remove cruft. --- (limited to 'scripts/MarkdownBook/HTMLTree.pm') diff --git a/scripts/MarkdownBook/HTMLTree.pm b/scripts/MarkdownBook/HTMLTree.pm index 419eb53..e01bab0 100644 --- a/scripts/MarkdownBook/HTMLTree.pm +++ b/scripts/MarkdownBook/HTMLTree.pm @@ -41,32 +41,4 @@ sub find_elements_by_tag_names return @retlist; } -sub each_text -{ - my ($elem) = @_; - - my $child = $elem; - my $root = $elem; - - return _each_text_recursive($child, $root); -} - -sub _each_text_recursive -{ - my ($elem, $root) = @_; - - my $child; - my @retlist = (); - - foreach $child ($elem->content_list()) { - if (ref($_) eq 'HTML::Element') { - push(@retlist, _each_text_recursive($child, $root)); - } else { - push(@retlist, $child); - } - } - - return @retlist; -} - 1; -- cgit v0.9.1