From: Stefano Lattarini Date: Thu, 7 Jun 2012 17:14:30 +0000 (+0200) Subject: cleanup: simplify subroutine '&saw_extension' X-Git-Tag: v1.12b~127 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=995e5ff0da20c9b500ecdd2eee2f793b6a27e980;p=thirdparty%2Fautomake.git cleanup: simplify subroutine '&saw_extension' * 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 --- diff --git a/automake.in b/automake.in index a87597bed..f88d94dc0 100644 --- a/automake.in +++ b/automake.in @@ -6028,14 +6028,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)