all repos — archive/microformats @ 5cc13ae3cec7a1778df2994d27a5594004f9a45a

Incomplete Clojure microformats library

Remove redundant parents function

Alan Pearce
commit

5cc13ae3cec7a1778df2994d27a5594004f9a45a

parent

ed360808d94ea0e637881158b393da52827573e9

1 file changed, 0 insertions(+), 6 deletions(-)

jump to
M src/microformats/parser.cljsrc/microformats/parser.clj
@@ -250,12 +250,6 @@ [element]
(hash-map :type (get-mf-names element) :properties (get-mf-properties element))) -;; Adapted from http://stackoverflow.com/a/7686324 -(defn- parents - [pred] - (html/zip-pred (fn [loc] - (some pred (take-while identity (iterate z/up (z/up loc))))))) - (defn select-h "Select top-level h-* elements within a HTML element." [loc]