cleanup: remove subroutine '&saw_sources_p'
authorStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 7 Jun 2012 17:14:12 +0000 (19:14 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 8 Jun 2012 20:01:54 +0000 (22:01 +0200)
* automake.in (saw_sources_p): Remove, its implementation is now so
trivial that it's easier to inline it into ...
(handle_languages): ... it's only caller.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
automake.in

index 8c02016..a87597b 100644 (file)
@@ -1301,7 +1301,7 @@ sub handle_languages
     {
        # Include auto-dep code.  Don't include it if DEP_FILES would
        # be empty.
-       if (&saw_sources_p && keys %dep_files)
+       if (keys %extension_seen && keys %dep_files)
        {
            # Set location of depcomp.
            &define_variable ('depcomp',
@@ -6038,13 +6038,6 @@ sub saw_extension
     }
 }
 
-# Called to ask whether source files (not headers) have been seen.
-sub saw_sources_p
-{
-    return scalar keys %extension_seen;
-}
-
-
 # register_language (%ATTRIBUTE)
 # ------------------------------
 # Register a single language.