eliminated dead code;
authorwenzelm
Thu, 28 Oct 2010 21:52:33 +0200
changeset 40233 b9d15110b97a
parent 40232 7ed03c0ae420
child 40234 39af96cc57cb
eliminated dead code;
src/HOL/Tools/sat_funcs.ML
--- a/src/HOL/Tools/sat_funcs.ML	Thu Oct 28 21:51:34 2010 +0200
+++ b/src/HOL/Tools/sat_funcs.ML	Thu Oct 28 21:52:33 2010 +0200
@@ -274,22 +274,6 @@
   | string_of_prop_formula (PropLogic.And (fm1, fm2)) = "(" ^ string_of_prop_formula fm1 ^ " & " ^ string_of_prop_formula fm2 ^ ")";
 
 (* ------------------------------------------------------------------------- *)
-(* take_prefix:                                                              *)
-(*      take_prefix n [x_1, ..., x_k] = ([x_1, ..., x_n], [x_n+1, ..., x_k]) *)
-(* ------------------------------------------------------------------------- *)
-
-(* int -> 'a list -> 'a list * 'a list *)
-
-fun take_prefix n xs =
-let
-	fun take 0 (rxs, xs)      = (rev rxs, xs)
-	  | take _ (rxs, [])      = (rev rxs, [])
-	  | take n (rxs, x :: xs) = take (n-1) (x :: rxs, xs)
-in
-	take n ([], xs)
-end;
-
-(* ------------------------------------------------------------------------- *)
 (* rawsat_thm: run external SAT solver with the given clauses.  Reconstructs *)
 (*      a proof from the resulting proof trace of the SAT solver.  The       *)
 (*      theorem returned is just "False" (with some of the given clauses as  *)