contrib/update-copyright.py: remove Java

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

contrib/update-copyright.py: remove Java

Gerald Pfeifer
This is a follow-up to

  2017-01-01  Jakub Jelinek  <[hidden email]>

        * update-copyright.py (TestsuiteFilter): Skip params/README.
        (GCCCmdLine): Remove libjava and libjava/testsuite add_dir.

which removed the usage of LibJavaFilter in this script, just not the
filter class itself.

Applied.

Gerald

2017-01-20  Gerald Pfeifer  <[hidden email]>
 
        * update-copyright.py (LibJavaFilter): Remove.
 
Index: update-copyright.py
===================================================================
--- update-copyright.py (revision 244714)
+++ update-copyright.py (working copy)
@@ -611,29 +611,6 @@
                 'soft-fp',
                 ])
 
-class LibJavaFilter (GenericFilter):
-    def __init__ (self):
-        GenericFilter.__init__ (self)
-
-        self.skip_dirs |= set ([
-                # Handled separately.
-                'testsuite',
-
-                # Not really part of the library
-                'contrib',
-
-                # Imported from upstream
-                'classpath',
-                'libltdl',
-                ])
-
-    def get_line_filter (self, dir, filename):
-        if filename == 'NameDecoder.h':
-            return re.compile ('.*NAME_COPYRIGHT')
-        if filename == 'ICC_Profile.h':
-            return re.compile ('.*icSigCopyrightTag')
-        return GenericFilter.get_line_filter (self, dir, filename)
-
 class LibStdCxxFilter (GenericFilter):
     def __init__ (self):
         GenericFilter.__init__ (self)