src/Pure/General/stack.ML
changeset 49063 f93443defa6c
parent 49011 9c68e43502ce
child 58797 6d71f19a9fd6
--- a/src/Pure/General/stack.ML	Sat Sep 01 19:43:18 2012 +0200
+++ b/src/Pure/General/stack.ML	Sat Sep 01 19:46:21 2012 +0200
@@ -10,9 +10,7 @@
   val level: 'a T -> int
   val init: 'a -> 'a T
   val top: 'a T -> 'a
-  val bottom: 'a T -> 'a
   val map_top: ('a -> 'a) -> 'a T -> 'a T
-  val map_bottom: ('a -> 'a) -> 'a T -> 'a T
   val map_all: ('a -> 'a) -> 'a T -> 'a T
   val push: 'a T -> 'a T
   val pop: 'a T -> 'a T      (*exception List.Empty*)
@@ -29,16 +27,8 @@
 
 fun top (x, _) = x;
 
-fun bottom (x, []) = x
-  | bottom (_, xs) = List.last xs;
-
 fun map_top f (x, xs) = (f x, xs);
 
-fun map_bottom f (x, []) = (f x, [])
-  | map_bottom f (x, rest) =
-      let val (ys, z) = split_last rest
-      in (x, ys @ [f z]) end;
-
 fun map_all f (x, xs) = (f x, map f xs);
 
 fun push (x, xs) = (x, x :: xs);