names_of: exclude intermediate ids -- less verbosity;
authorwenzelm
Wed, 14 May 2008 14:43:37 +0200
changeset 26889 ccea41fb5c39
parent 26888 9942cd184c48
child 26890 f9ec18f7c0f6
names_of: exclude intermediate ids -- less verbosity;
src/Pure/context.ML
--- a/src/Pure/context.ML	Wed May 14 14:43:34 2008 +0200
+++ b/src/Pure/context.ML	Wed May 14 14:43:37 2008 +0200
@@ -209,8 +209,8 @@
   Inttab.exists (equal name o #2) ids orelse
   Inttab.exists (equal name o #2) iids;
 
-fun names_of (Theory ({id, ids, iids, ...}, _, _, _)) =
-  rev (#2 id :: Inttab.fold (cons o #2) iids (Inttab.fold (cons o #2) ids []));
+fun names_of (Theory ({id, ids, ...}, _, _, _)) =
+  rev (#2 id :: Inttab.fold (cons o #2) ids []);
 
 fun pretty_thy thy =
   Pretty.str_list "{" "}" (names_of thy @ (if is_stale thy then ["!"] else []));