]> Savannah Git Hosting - gnulib.git/commitdiff
gnulib-tool.py: Remove an unused and incorrect function.
authorCollin Funk <collin.funk1@gmail.com>
Mon, 8 Apr 2024 01:55:50 +0000 (18:55 -0700)
committerBruno Haible <bruno@clisp.org>
Mon, 8 Apr 2024 18:37:06 +0000 (20:37 +0200)
* pygnulib/GLFileSystem.py (GLFileAssistant.removeFile): Remove this
unused function. The correct method of removing an element from a list
is to use the remove() function, not pop() which takes an index.

ChangeLog
pygnulib/GLFileSystem.py

index 1ab44147281baf08a2797b8c7fbdcb8389b747b9..a6ba2ae992878572a90190792c80cc096c3df137 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2024-04-08  Collin Funk  <collin.funk1@gmail.com>
+
+       gnulib-tool.py: Remove an unused and incorrect function.
+       * pygnulib/GLFileSystem.py (GLFileAssistant.removeFile): Remove this
+       unused function. The correct method of removing an element from a list
+       is to use the remove() function, not pop() which takes an index.
+
 2024-04-08  Collin Funk  <collin.funk1@gmail.com>
 
        gnulib-tool.py: Omit some unnecessary list() calls around sorted().
index 551ae177e4150e15e2a61ce3ca8774ac6f2a35de..a463575f738df055da4d579a63b4df28b2eeb58c 100644 (file)
@@ -228,11 +228,6 @@ class GLFileAssistant:
         if file not in self.added:
             self.added += [file]
 
-    def removeFile(self, file: str) -> None:
-        '''Remove file from the list of added files.'''
-        if file in self.added:
-            self.added.pop(file)
-
     def getFiles(self) -> list[str]:
         '''Return list of the added files.'''
         return list(self.added)