]> Savannah Git Hosting - gnulib.git/commitdiff
gnulib-tool.py: Remove remaining unused instance variables.
authorCollin Funk <collin.funk1@gmail.com>
Tue, 30 Apr 2024 08:09:55 +0000 (01:09 -0700)
committerCollin Funk <collin.funk1@gmail.com>
Tue, 30 Apr 2024 08:09:55 +0000 (01:09 -0700)
* pygnulib/GLModuleSystem.py (GLModule.__init__)
(GLModuleTable.__init__): Remove the unused GLFileSystem variable. These
classes perform lookups with a GLModuleSystem.
* pygnulib/GLTestDir.py (GLTestDir.__init__): Remove the unused
GLFileAssistant variable. The transformations it performs are not needed
in testdirs.

ChangeLog
pygnulib/GLModuleSystem.py
pygnulib/GLTestDir.py

index bd5bb93c0bfb2ca2adfb9407b97bc9d779f2d6c6..5cd01d60d0bed63e89c1077595159363dbf1f8ea 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2024-04-30  Collin Funk  <collin.funk1@gmail.com>
+
+       gnulib-tool.py: Remove remaining unused instance variables.
+       * pygnulib/GLModuleSystem.py (GLModule.__init__)
+       (GLModuleTable.__init__): Remove the unused GLFileSystem variable. These
+       classes perform lookups with a GLModuleSystem.
+       * pygnulib/GLTestDir.py (GLTestDir.__init__): Remove the unused
+       GLFileAssistant variable. The transformations it performs are not needed
+       in testdirs.
+
 2024-04-29  Collin Funk  <collin.funk1@gmail.com>
 
        gnulib-tool.py: Add type hints to classes.
index a5afb5af6f8ead64af75602fb768329c3570ccb7..01ee393d12841ca37a3f21305125fff9bfac603f 100644 (file)
@@ -175,7 +175,6 @@ class GLModule:
     path: str
     patched: bool
     config: GLConfig
-    filesystem: GLFileSystem
     modulesystem: GLModuleSystem
     sections: dict[str, str]
 
@@ -202,7 +201,6 @@ class GLModule:
         self.path = path
         self.patched = patched
         self.config = config
-        self.filesystem = GLFileSystem(self.config)
         self.modulesystem = GLModuleSystem(self.config)
         # Read the module description file into memory.
         with open(path, mode='r', newline='\n', encoding='utf-8') as file:
@@ -706,7 +704,6 @@ class GLModuleTable:
     tests_modules: list[GLModule]
     final_modules: list[GLModule]
     config: GLConfig
-    filesystem: GLFileSystem
     modulesystem: GLModuleSystem
     inc_all_direct_tests: bool
     inc_all_indirect_tests: bool
@@ -750,7 +747,6 @@ class GLModuleTable:
             raise TypeError('config must be a GLConfig, not %s'
                             % type(config).__name__)
         self.config = config
-        self.filesystem = GLFileSystem(self.config)
         self.modulesystem = GLModuleSystem(self.config)
         if type(inc_all_direct_tests) is not bool:
             raise TypeError('inc_all_direct_tests must be a bool, not %s'
index 688224cdcee419b06de3c0845cd733b92945e8e9..8ddc1ea4c8918f6ccd3fe4bd0b11bec655e2caad 100644 (file)
@@ -96,7 +96,6 @@ class GLTestDir:
     emitter: GLEmiter
     filesystem: GLFileSystem
     modulesystem: GLModuleSystem
-    assistant: GLFileAssistant
     makefiletable: GLMakefileTable
 
     def __init__(self, config: GLConfig, testdir: str) -> None:
@@ -117,7 +116,6 @@ class GLTestDir:
         self.emitter = GLEmiter(self.config)
         self.filesystem = GLFileSystem(self.config)
         self.modulesystem = GLModuleSystem(self.config)
-        self.assistant = GLFileAssistant(self.config)
         self.makefiletable = GLMakefileTable(self.config)
 
         # Subdirectory names.