summaryrefslogtreecommitdiffstats
path: root/perl_checker.src/common.ml
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-12-04 21:26:53 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-12-04 21:26:53 +0000
commita9a9b4fe62d034bcc8692d14289386bd4024d021 (patch)
tree28b5b1b421fee040ba6ad290ac3bc15247dcdbf3 /perl_checker.src/common.ml
parent555a6a99fb88ad745be370843cfc79c26e17eb19 (diff)
downloadperl-MDK-Common-a9a9b4fe62d034bcc8692d14289386bd4024d021.tar
perl-MDK-Common-a9a9b4fe62d034bcc8692d14289386bd4024d021.tar.gz
perl-MDK-Common-a9a9b4fe62d034bcc8692d14289386bd4024d021.tar.bz2
perl-MDK-Common-a9a9b4fe62d034bcc8692d14289386bd4024d021.tar.xz
perl-MDK-Common-a9a9b4fe62d034bcc8692d14289386bd4024d021.zip
add "unused variable" detection
Diffstat (limited to 'perl_checker.src/common.ml')
-rw-r--r--perl_checker.src/common.ml3
1 files changed, 0 insertions, 3 deletions
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