automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 7/8] cleanup: remove subroutine '&saw_sources_p'


From: Stefano Lattarini
Subject: [PATCH 7/8] cleanup: remove subroutine '&saw_sources_p'
Date: Fri, 8 Jun 2012 10:20:29 +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 <address@hidden>
---
 automake.in |    9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/automake.in b/automake.in
index ebafe08..ab8cf00 100644
--- a/automake.in
+++ b/automake.in
@@ -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',
@@ -6051,13 +6051,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.
-- 
1.7.9.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]