From a9a9b4fe62d034bcc8692d14289386bd4024d021 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 4 Dec 2002 21:26:53 +0000 Subject: add "unused variable" detection --- perl_checker.src/common.ml | 3 --- 1 file changed, 3 deletions(-) (limited to 'perl_checker.src/common.ml') diff --git a/perl_checker.src/common.ml b/perl_checker.src/common.ml index 07e138e..19aaa5f 100644 --- a/perl_checker.src/common.ml +++ b/perl_checker.src/common.ml @@ -390,9 +390,6 @@ let map_assoc_val f l = map (fun (k,v) -> k, f v) l let assoc_or_fail e l = try assoc e l with Not_found -> failwith "assoc failed" -let assoc_has_key e l = - try let _ = assoc e l in true with Not_found -> false - let assoc_by is_same e l = find_some (fun (a,b) -> if is_same e a then Some b else None) l -- cgit v1.2.1