src/Pure/General/input.ML
changeset 59066 45ab32a542fe
parent 59064 a8bcb5a446c8
child 59117 caddfa6ca534
--- a/src/Pure/General/input.ML	Sun Nov 30 12:46:16 2014 +0100
+++ b/src/Pure/General/input.ML	Sun Nov 30 13:15:04 2014 +0100
@@ -13,7 +13,7 @@
   val range_of: source -> Position.range
   val source: bool -> Symbol_Pos.text -> Position.range -> source
   val source_explode: source -> Symbol_Pos.T list
-  val source_content: source -> string * Position.T
+  val source_content: source -> string
 end;
 
 structure Input: INPUT =
@@ -33,9 +33,7 @@
 fun source_explode (Source {text, range = (pos, _), ...}) =
   Symbol_Pos.explode (text, pos);
 
-fun source_content (Source {text, range = (pos, _), ...}) =
-  let val syms = Symbol_Pos.explode (text, pos)
-  in (Symbol_Pos.content syms, pos) end;
+val source_content = source_explode #> Symbol_Pos.content;
 
 end;