--- a/src/Pure/theory.ML Wed Apr 04 23:29:39 2007 +0200
+++ b/src/Pure/theory.ML Wed Apr 04 23:29:40 2007 +0200
@@ -51,7 +51,6 @@
val add_finals: bool -> string list -> theory -> theory
val add_finals_i: bool -> term list -> theory -> theory
val add_oracle: bstring * (theory * Object.T -> term) -> theory -> theory
- val dep_graph: theory -> unit Graph.T;
end
structure Theory: THEORY =
@@ -330,25 +329,6 @@
NameSpace.extend_table (Sign.naming_of thy) (oracles, [(bname, (oracle, stamp ()))])
handle Symtab.DUPS dups => err_dup_oras dups);
-
-
-(** graph of theory parents **)
-
-fun dep_graph thy =
- let
- fun add_thy thy gr =
- let
- val name = Context.theory_name thy;
- in if can (Graph.get_node gr) name then (name, gr)
- else
- gr
- |> Graph.new_node (name, ())
- |> fold_map add_thy (parents_of thy)
- |-> (fn names => fold (fn name' => Graph.add_edge (name, name')) names)
- |> pair name
- end;
- in snd (add_thy thy Graph.empty) end;
-
end;
structure BasicTheory: BASIC_THEORY = Theory;