diff -r 7e31dfd99ce7 -r f93443defa6c src/Pure/General/stack.ML --- 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);