src/Tools/nbe.ML
changeset 34173 458ced35abb8
parent 33522 737589bb9bb8
child 34244 03f8dcab55f3
--- a/src/Tools/nbe.ML	Wed Dec 23 08:31:14 2009 +0100
+++ b/src/Tools/nbe.ML	Wed Dec 23 08:31:15 2009 +0100
@@ -505,18 +505,10 @@
 
 (* function store *)
 
-structure Nbe_Functions = Code_Data_Fun
+structure Nbe_Functions = Code_Data
 (
   type T = Code_Thingol.naming * ((Univ option * int) Graph.T * (int * string Inttab.table));
   val empty = (Code_Thingol.empty_naming, (Graph.empty, (0, Inttab.empty)));
-  fun purge thy cs (naming, (gr, (maxidx, idx_tab))) =
-    let
-      val names_delete = cs
-        |> map_filter (Code_Thingol.lookup_const naming)
-        |> filter (can (Graph.get_node gr))
-        |> Graph.all_preds gr;
-      val gr' = Graph.del_nodes names_delete gr;
-    in (naming, (gr', (maxidx, idx_tab))) end;
 );
 
 (* compilation, evaluation and reification *)