From ade9e22515b0be099743ff4bb876254c39f9a489 Mon Sep 17 00:00:00 2001 From: herbelin Date: Mon, 16 Jan 2006 11:05:50 +0000 Subject: Code redondant git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@7877 85f007b7-540e-0410-9357-904b9bb8a0f7 --- tactics/tactics.ml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/tactics/tactics.ml b/tactics/tactics.ml index 2e49cd51a3..b277df0e00 100644 --- a/tactics/tactics.ml +++ b/tactics/tactics.ml @@ -1111,20 +1111,12 @@ let forward usetac ipat c gl = *) -let rec str_intro_pattern = function - | IntroOrAndPattern pll -> - "["^(String.concat "|" - (List.map - (fun pl -> String.concat " " (List.map str_intro_pattern pl)) pll)) - ^"]" - | IntroWildcard -> "_" - | IntroIdentifier id -> string_of_id id - let check_unused_names names = if names <> [] & Options.is_verbose () then let s = if List.tl names = [] then " " else "s " in - let names = String.concat " " (List.map str_intro_pattern names) in - warning ("Unused introduction pattern"^s^": "^names) + msg_warning + (str"Unused introduction pattern" ++ str s ++ + str": " ++ prlist_with_sep spc pr_intro_pattern names) let rec first_name_buggy = function | IntroOrAndPattern [] -> None -- cgit v1.2.3