]> gitweb.factorcode.org Git - factor.git/commitdiff
xml.writer: remove M\ number write-xml.
authorJohn Benediktsson <mrjbq7@gmail.com>
Wed, 26 Feb 2020 18:24:23 +0000 (10:24 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Wed, 26 Feb 2020 18:24:23 +0000 (10:24 -0800)
This is likely an artifact from when numbers were treated as sequences,
which isn't needed anymore.

basis/xml/writer/writer.factor

index 1f42bf8a35a6a91f94256355a27156198cd4d16b..b4f9c3be61cbc8fad4ae20736bc802eee66f3ea9 100644 (file)
@@ -153,9 +153,6 @@ M: directive write-xml
 M: instruction write-xml
     "<?" write text>> write "?>" write ;
 
-M: number write-xml
-    "Numbers are not allowed in XML" throw ;
-
 M: sequence write-xml
     [ write-xml ] each ;