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
commit1310c8fe02524b095663ca7c79bd803747e6754b (patch)
treebf01ffd6100e278572c8ef70b9b0874b9b92ee70 /perl_checker.src/common.ml
parentf5531af121c4c1a7c12b6c35a1c12748ccf51d5f (diff)
downloadperl_checker-1310c8fe02524b095663ca7c79bd803747e6754b.tar
perl_checker-1310c8fe02524b095663ca7c79bd803747e6754b.tar.gz
perl_checker-1310c8fe02524b095663ca7c79bd803747e6754b.tar.bz2
perl_checker-1310c8fe02524b095663ca7c79bd803747e6754b.tar.xz
perl_checker-1310c8fe02524b095663ca7c79bd803747e6754b.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