aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorherbelin2006-01-16 11:05:50 +0000
committerherbelin2006-01-16 11:05:50 +0000
commitade9e22515b0be099743ff4bb876254c39f9a489 (patch)
tree05b495caabf66e4938f85faf70affccba8254b7d
parent5944946b01c436a167a7b86b22084d12114b59df (diff)
Code redondant
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@7877 85f007b7-540e-0410-9357-904b9bb8a0f7
-rw-r--r--tactics/tactics.ml14
1 files 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