unused;
authorwenzelm
Sat, 02 Nov 2019 13:20:37 +0100
changeset 70996 ebdfd6c43e56
parent 70995 2c17fa0f5187
child 70997 325247f32da9
unused;
src/Pure/PIDE/yxml.ML
--- a/src/Pure/PIDE/yxml.ML	Sat Nov 02 12:39:44 2019 +0100
+++ b/src/Pure/PIDE/yxml.ML	Sat Nov 02 13:20:37 2019 +0100
@@ -21,8 +21,6 @@
   val embed_controls: string -> string
   val detect: string -> bool
   val traverse: (string -> 'a -> 'a) -> XML.tree -> 'a -> 'a
-  val buffer: XML.tree -> Buffer.T -> Buffer.T
-  val chunks_of_body: XML.body -> string list
   val string_of_body: XML.body -> string
   val string_of: XML.tree -> string
   val write_body: Path.T -> XML.body -> unit
@@ -76,10 +74,7 @@
       | tree (XML.Text s) = string s;
   in tree end;
 
-val buffer = traverse Buffer.add;
-
-fun chunks_of_body body = Buffer.empty |> fold buffer body |> Buffer.chunks;
-fun string_of_body body = Buffer.empty |> fold buffer body |> Buffer.content;
+fun string_of_body body = Buffer.empty |> fold (traverse Buffer.add) body |> Buffer.content;
 val string_of = string_of_body o single;
 
 fun write_body path body =