* automake.in (saw_extension): Now that we use the '%extension_seen'
hash only as a set (it's keys being its elements), we can simplify
the implementation of this function accordingly.

Signed-off-by: Stefano Lattarini <stefano.lattar...@gmail.com>
---
 automake.in |    9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/automake.in b/automake.in
index ab8cf00..695345f 100644
--- a/automake.in
+++ b/automake.in
@@ -6041,14 +6041,7 @@ sub resolve_linker
 sub saw_extension
 {
     my ($ext) = @_;
-    if (! defined $extension_seen{$ext})
-    {
-       $extension_seen{$ext} = 1;
-    }
-    else
-    {
-       ++$extension_seen{$ext};
-    }
+    $extension_seen{$ext} = 1;
 }
 
 # register_language (%ATTRIBUTE)
-- 
1.7.9.5


Reply via email to