unused
authorhaftmann
Thu, 22 May 2014 17:52:59 +0200
changeset 57071 c97b8250c033
parent 57070 6a8a01e6dcdf
child 57072 dfac6ef0ca28
unused
src/Pure/Isar/named_target.ML
--- a/src/Pure/Isar/named_target.ML	Thu May 22 16:59:49 2014 +0200
+++ b/src/Pure/Isar/named_target.ML	Thu May 22 17:52:59 2014 +0200
@@ -9,7 +9,6 @@
 sig
   val peek: local_theory -> {target: string, is_locale: bool, is_class: bool} option
   val is_theory: local_theory -> bool
-  val the_name: local_theory -> string
   val init: (local_theory -> local_theory) -> string -> theory -> local_theory
   val theory_init: theory -> local_theory
   val reinit: local_theory -> local_theory -> local_theory
@@ -48,15 +47,6 @@
 fun is_theory lthy =
   Option.map #target (peek lthy) = SOME "" andalso Local_Theory.level lthy = 1;
 
-fun the_name lthy =
-  let
-    val _ = Local_Theory.assert_bottom true lthy;
-  in
-    (case Option.map #target (peek lthy) of
-      SOME target => target
-    | _ => error "Not in a named target")
-  end;
-
 
 (* consts *)