remove unused state variable
authorPhilipp Gesang <philipp.gesang@intra2net.com>
Fri, 28 Apr 2017 08:28:29 +0000 (10:28 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 2 Apr 2018 11:34:08 +0000 (13:34 +0200)
“internal_pos” which is only written to and never read was
introduced with this commit:

    commit 85737f48c38a432f2429e9e3e4b81fed164c4b9a
    Author: Eduardo Robles Elvira <edulix@wadobo.com>
    Date:   Fri Jul 5 11:50:43 2013 +0200

        extracting files in r#gz mode now works too, includes unit tests

and lacks a raison d’être ever since.

deltatar/tarfile.py

index cf1e24c..5768e18 100644 (file)
@@ -443,7 +443,6 @@ class _Stream:
         self.concat_pos = 0
         self.closed   = False
         self.flags    = 0
-        self.internal_pos = 0
         self.concat_stream = concat_stream
         self.last_block_offset = 0
         self.dbuf     = b"" # ???
@@ -912,7 +911,6 @@ class _Stream:
 
             t.append(buf)
             c += len(buf)
-            self.internal_pos += len(buf)
         t = b"".join(t)
         self.buf = t[size:]