revert 90f6e541e926, which has become pointless thanks to df85df6315af;
authorwenzelm
Wed, 11 Sep 2024 12:46:56 +0200
changeset 80852 7560e1a69680
parent 80851 b1ed84a5215b
child 80853 a34eca8caccb
revert 90f6e541e926, which has become pointless thanks to df85df6315af;
src/Pure/PIDE/xml.ML
--- a/src/Pure/PIDE/xml.ML	Wed Sep 11 12:32:11 2024 +0200
+++ b/src/Pure/PIDE/xml.ML	Wed Sep 11 12:46:56 2024 +0200
@@ -63,23 +63,7 @@
 
 open XML;
 
-val blob =
-  let
-    val limit = 8000;
-
-    val buffer = fn "" => I | s => cons s;
-    val output1 = fn "" => I | s => cons (Text s);
-    val output = fn [] => I | ss => cons (Text (implode ss));
-
-    fun make [] _ buf result = output buf result
-      | make (x :: xs) m buf result =
-          let val l = size x in
-            if l + m < limit then make xs (l + m) (buffer x buf) result
-            else if l + m = limit then make xs 0 [] (output (buffer x buf) result)
-            else if l >= limit then make xs 0 [] (output1 x (output buf result))
-            else make xs l [x] (output buf result)
-          end;
-  in fn xs => make (rev xs) 0 [] [] end
+val blob = map Text;
 
 fun is_empty (Text "") = true
   | is_empty _ = false;