diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2002-12-04 21:26:53 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2002-12-04 21:26:53 +0000 |
commit | 1310c8fe02524b095663ca7c79bd803747e6754b (patch) | |
tree | bf01ffd6100e278572c8ef70b9b0874b9b92ee70 /perl_checker.src/common.ml | |
parent | f5531af121c4c1a7c12b6c35a1c12748ccf51d5f (diff) | |
download | perl_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.ml | 3 |
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 |