From eaeb27ce056b73594c26f90d96d7a13c38d40b51 Mon Sep 17 00:00:00 2001 From: yam-anssi Date: Fri, 25 Nov 2016 18:25:00 +0100 Subject: [PATCH] Unused variable removed. --- README.md | 1 + bmc-tools.py | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 0d1c368..538fd1c 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,7 @@ With the following arguments meaning: ``` ## Changelog ``` +25/11/2016 1.00c Unused variable removed. 10/08/2016 1.00b --dest parameter processing fixed. 01/07/2016 1.00a cacheXXXX.bin header detection fixed. 27/06/2016 1.00 Initial release. diff --git a/bmc-tools.py b/bmc-tools.py index c33527c..e3dacf0 100755 --- a/bmc-tools.py +++ b/bmc-tools.py @@ -50,7 +50,6 @@ def b_process(self): if len(self.bdat) == 0: self.b_log(sys.stderr, False, 3, "Nothing to process.") return False - off = 0 while len(self.bdat) > 0: old = False o_bmp = "" @@ -92,7 +91,6 @@ def b_process(self): self.o_bmps.append(o_bmp) if len(self.bmps)%100 == 0: self.b_log(sys.stdout, True, 1, "%d tiles successfully extracted so far." % (len(self.bmps))) - off+=len(t_hdr)+bl self.bdat = self.bdat[len(t_hdr)+bl:] if self.cnt != 0 and len(self.bmps) == self.cnt: break