src/Pure/General/source.ML
changeset 24232 a70360a54e5c
parent 24064 7be344a20b6b
child 25575 fee953b45015
--- a/src/Pure/General/source.ML	Sun Aug 12 18:53:03 2007 +0200
+++ b/src/Pure/General/source.ML	Sun Aug 12 18:53:04 2007 +0200
@@ -112,24 +112,23 @@
 
 (* stream source *)
 
-fun slurp_input instream = NAMED_CRITICAL "IO" (fn () =>
+fun slurp_input instream =
   let
     fun slurp () =
       (case TextIO.canInput (instream, 1) handle IO.Io _ => NONE of
         NONE => []
       | SOME 0 => []
       | SOME _ => TextIO.input instream :: slurp ());
-  in maps explode (slurp ()) end);
+  in maps explode (slurp ()) end;
 
 fun drain_stream instream outstream prompt () =
   let val input = slurp_input instream in
     if exists (fn c => c = "\n") input then (input, ())
     else
       (case
-        NAMED_CRITICAL "IO" (fn () =>
           (TextIO.output (outstream, Output.output prompt);
             TextIO.flushOut outstream;
-            TextIO.inputLine instream)) of
+            TextIO.inputLine instream) of
           SOME line => (input @ explode line, ())
         | NONE => (input, ()))
   end;