]> gitweb.factorcode.org Git - factor.git/commitdiff
Removing outdated comments in xml.utilities
authorDaniel Ehrenberg <littledan@Macintosh-103.local>
Wed, 28 Jan 2009 00:16:35 +0000 (18:16 -0600)
committerDaniel Ehrenberg <littledan@Macintosh-103.local>
Wed, 28 Jan 2009 00:16:35 +0000 (18:16 -0600)
basis/xml/utilities/utilities.factor

index 60460e3f4665e6a03cb6509a4d3d23b2f14f2d1d..48cbeceb224eebe0d6855bc50c78cd434cfba094 100644 (file)
@@ -19,10 +19,6 @@ IN: xml.utilities
 : first-child-tag ( tag -- tag )
     children>> [ tag? ] find nip ;
 
-! * Accessing part of an XML document
-! for tag- words, a start means that it searches all children
-! and no star searches only direct children
-
 : tag-named? ( name elem -- ? )
     dup tag? [ names-match? ] [ 2drop f ] if ;
 
@@ -36,8 +32,6 @@ IN: xml.utilities
     tags@ '[ _ swap tag-named? ] deep-filter ;
 
 : tag-named ( tag name/string -- matching-tag )
-    ! like get-name-tag but only looks at direct children,
-    ! not all the children down the tree.
     assure-name swap [ tag-named? ] with find nip ;
 
 : tags-named ( tag name/string -- tags-seq )
@@ -58,7 +52,7 @@ IN: xml.utilities
 : deep-tags-with-attr ( tag attr-value attr-name -- tags-seq )
     tags@ '[ _ _ tag-with-attr? ] deep-filter ;
 
-: get-id ( tag id -- elem ) ! elem=tag.getElementById(id)
+: get-id ( tag id -- elem )
     "id" deep-tag-with-attr ;
 
 : deep-tags-named-with-attr ( tag tag-name attr-value attr-name -- tags )