src/Pure/General/secure.ML
changeset 22567 1565d476a9e2
parent 22144 c33450acd873
child 23922 707639e9497d
--- a/src/Pure/General/secure.ML	Tue Apr 03 19:24:10 2007 +0200
+++ b/src/Pure/General/secure.ML	Tue Apr 03 19:24:11 2007 +0200
@@ -9,7 +9,6 @@
 sig
   val set_secure: unit -> unit
   val is_secure: unit -> bool
-  val deny_secure: string -> unit
   val use_text: string -> (string -> unit) * (string -> 'a) -> bool -> string -> unit
   val use_file: (string -> unit) * (string -> 'a) -> bool -> string -> unit
   val use: string -> unit
@@ -28,7 +27,7 @@
 fun set_secure () = secure := true;
 fun is_secure () = ! secure;
 
-fun deny_secure msg = deny (is_secure ()) msg;
+fun deny_secure msg = if is_secure () then error msg else ();
 
 
 (** critical operations **)