src/Pure/General/file.ML
changeset 12116 4027b15377a5
parent 9784 d8f8dc335c8c
child 12894 61f485eb0dc2
--- a/src/Pure/General/file.ML	Fri Nov 09 00:11:52 2001 +0100
+++ b/src/Pure/General/file.ML	Fri Nov 09 00:14:17 2001 +0100
@@ -27,8 +27,7 @@
   val exists: Path.T -> bool
   val mkdir: Path.T -> unit
   val copy_all: Path.T -> Path.T -> unit
-  val plain_use: Path.T -> unit
-  val symbol_use: Path.T -> unit
+  val use: Path.T -> unit
 end;
 
 structure File: FILE =
@@ -106,27 +105,8 @@
   system_command ("cp -r " ^ quote_sysify_path path1 ^ " " ^ quote_sysify_path path2);
 
 
-(* symbol_use *)
-
-val plain_use = use o sysify_path;
-
-(* version of 'use' with input filtering *)
+(* use ML files *)
 
-val symbol_use =
-  if not needs_filtered_use then plain_use	(*ML system (wrongly!) accepts non-ASCII*)
-  else
-    fn path =>
-      let
-        val txt = read path;
-        val txt_out = Symbol.input txt;
-      in
-        if txt = txt_out then plain_use path
-        else
-          let val tmp_path = tmp_path path in
-            write tmp_path txt_out;
-            plain_use tmp_path handle exn => (rm tmp_path; raise exn);
-            rm tmp_path
-          end
-      end;
+val use = use o sysify_path;
 
 end;