killed dead code
authorblanchet
Thu, 26 Jun 2014 13:34:57 +0200
changeset 57360 e90fc9118a47
parent 57359 dd89d0ec8e41
child 57361 05fda107fb89
killed dead code
src/HOL/Tools/Sledgehammer/sledgehammer_mash.ML
--- a/src/HOL/Tools/Sledgehammer/sledgehammer_mash.ML	Thu Jun 26 13:34:50 2014 +0200
+++ b/src/HOL/Tools/Sledgehammer/sledgehammer_mash.ML	Thu Jun 26 13:34:57 2014 +0200
@@ -274,13 +274,7 @@
 fun encode_feature (names, weight) =
   encode_str names ^ (if Real.== (weight, 1.0) then "" else "=" ^ safe_str_of_real weight)
 
-fun decode_feature s =
-  (case space_explode "=" s of
-    [feat, weight] => (decode_str feat, Real.fromString weight |> the_default 1.0)
-  | _ => (decode_str s, 1.0))
-
 val encode_features = map encode_feature #> space_implode " "
-val decode_features = space_explode " " #> map decode_feature
 
 fun str_of_learn (name, parents, feats, deps) =
   "! " ^ encode_str name ^ ": " ^ encode_strs parents ^ "; " ^ encode_strs feats ^ "; " ^