Skip to content

Commit 690f37a

Browse files
committed
Remove unused local variables
Signed-off-by: Peter Grayson <[email protected]>
1 parent 9d06cab commit 690f37a

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

stgit/commands/mail.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ def __build_address_headers(msg, options, extra_cc = []):
390390
# --auto generated addresses, don't include the sender
391391
__update_header(msg, 'Cc', extra_cc_addr, from_set)
392392
cc_set = __update_header(msg, 'Cc', cc_addr, to_set)
393-
bcc_set = __update_header(msg, 'Bcc', bcc_addr, to_set.union(cc_set))
393+
__update_header(msg, 'Bcc', bcc_addr, to_set.union(cc_set))
394394

395395
def __get_signers_list(msg):
396396
"""Return the address list generated from signed-off-by and

stgit/commands/new.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def func(parser, options, args):
8383
lambda name: stack.patches.exists(name))
8484

8585
# Write the new patch.
86-
iw = stack.repository.default_iw
86+
stack.repository.default_iw
8787
trans = transaction.StackTransaction(stack, 'new')
8888
trans.patches[name] = stack.repository.commit(cd)
8989
trans.applied.append(name)

stgit/lib/git.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1129,7 +1129,8 @@ def set_head(self, commit, msg):
11291129
self.__repository.refs.set(self.__ref(), commit, msg)
11301130

11311131
def set_parent_remote(self, name):
1132-
value = config.set('branch.%s.remote' % self.__name, name)
1132+
config.set('branch.%s.remote' % self.__name, name)
1133+
11331134
def set_parent_branch(self, name):
11341135
if config.get('branch.%s.remote' % self.__name):
11351136
# Never set merge if remote is not set to avoid

stgit/stack.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ def get_parent_remote(self):
462462
self.get_name())
463463

464464
def __set_parent_remote(self, remote):
465-
value = config.set('branch.%s.remote' % self.get_name(), remote)
465+
config.set('branch.%s.remote' % self.get_name(), remote)
466466

467467
def get_parent_branch(self):
468468
value = config.get('branch.%s.stgit.parentbranch' % self.get_name())
@@ -1109,7 +1109,6 @@ def log_patch(self, patch, message, notes = None):
11091109
if not old_log:
11101110
raise StackException('No log entry to annotate for patch "%s"'
11111111
% patch.get_name())
1112-
replace = True
11131112
log_commit = git.get_commit(old_log)
11141113
msg = log_commit.get_log().split('\n')[0]
11151114
log_parent = log_commit.get_parent()
@@ -1119,7 +1118,6 @@ def log_patch(self, patch, message, notes = None):
11191118
parents = []
11201119
else:
11211120
# generate a new log entry
1122-
replace = False
11231121
msg = '%s\t%s' % (message, top.get_id_hash())
11241122
if old_log:
11251123
parents = [old_log]

0 commit comments

Comments
 (0)