[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 6/8] cleanup: remove unused '&count_files_for_language' subroutin
From: |
Stefano Lattarini |
Subject: |
[PATCH 6/8] cleanup: remove unused '&count_files_for_language' subroutine |
Date: |
Fri, 8 Jun 2012 10:20:28 +0200 |
* automake.in (count_files_for_language): Remove. Its only remaining
caller (saw_sources_p) has stopped calling it in the previous commit.
Signed-off-by: Stefano Lattarini <address@hidden>
---
automake.in | 38 --------------------------------------
1 file changed, 38 deletions(-)
diff --git a/automake.in b/automake.in
index 347b952..ebafe08 100644
--- a/automake.in
+++ b/automake.in
@@ -6051,44 +6051,6 @@ sub saw_extension
}
}
-# Return the number of files seen for a given language. Knows about
-# special cases we care about. FIXME: this is hideous. We need
-# something that involves real language objects. For instance yacc
-# and yaccxx could both derive from a common yacc class which would
-# know about the strange ylwrap requirement. (Or better yet we could
-# just not support legacy yacc!)
-sub count_files_for_language
-{
- my ($name) = @_;
-
- my @names;
- if ($name eq 'yacc' || $name eq 'yaccxx')
- {
- @names = ('yacc', 'yaccxx');
- }
- elsif ($name eq 'lex' || $name eq 'lexxx')
- {
- @names = ('lex', 'lexxx');
- }
- else
- {
- @names = ($name);
- }
-
- my $r = 0;
- foreach $name (@names)
- {
- my $lang = $languages{$name};
- foreach my $ext (@{$lang->extensions})
- {
- $r += $extension_seen{$ext}
- if defined $extension_seen{$ext};
- }
- }
-
- return $r
-}
-
# Called to ask whether source files (not headers) have been seen.
sub saw_sources_p
{
--
1.7.9.5
- [PATCH 0/8] {master} Some simplifications in tags support, Stefano Lattarini, 2012/06/08
- [PATCH 3/8] tags: new var $(am__tagged_files) to list all files to run taggers on, Stefano Lattarini, 2012/06/08
- [PATCH 4/8] tags: look at $(am__tagged_files) to decide whether to activate, Stefano Lattarini, 2012/06/08
- [PATCH 1/8] tags (ID, cscope): also process config header (if any), Stefano Lattarini, 2012/06/08
- [PATCH 2/8] tags (cscope): also process $(TAGS_FILES), Stefano Lattarini, 2012/06/08
- [PATCH 8/8] cleanup: simplify subroutine '&saw_extension', Stefano Lattarini, 2012/06/08
- [PATCH 6/8] cleanup: remove unused '&count_files_for_language' subroutine,
Stefano Lattarini <=
- [PATCH 5/8] automake: simplify '&saw_sources_p', Stefano Lattarini, 2012/06/08
- [PATCH 7/8] cleanup: remove subroutine '&saw_sources_p', Stefano Lattarini, 2012/06/08
- Re: [PATCH 0/8] {master} Some simplifications in tags support, Stefano Lattarini, 2012/06/09