Mercurial > public > mercurial-scm > hg
comparison mercurial/manifest.py @ 41365:876494fd967d
cleanup: delete lots of unused local variables
These were found by IntelliJ. There are many more, but these seemed
pretty safe.
Differential Revision: https://phab.mercurial-scm.org/D5629
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Thu, 17 Jan 2019 09:17:12 -0800 |
parents | 2c3f69855ce8 |
children | c3522b015f81 |
comparison
equal
deleted
inserted
replaced
41364:0132221c25cd | 41365:876494fd967d |
---|---|
281 def _compact(self): | 281 def _compact(self): |
282 # hopefully not called TOO often | 282 # hopefully not called TOO often |
283 if len(self.extradata) == 0: | 283 if len(self.extradata) == 0: |
284 return | 284 return |
285 l = [] | 285 l = [] |
286 last_cut = 0 | |
287 i = 0 | 286 i = 0 |
288 offset = 0 | 287 offset = 0 |
289 self.extrainfo = [0] * len(self.positions) | 288 self.extrainfo = [0] * len(self.positions) |
290 while i < len(self.positions): | 289 while i < len(self.positions): |
291 if self.positions[i] >= 0: | 290 if self.positions[i] >= 0: |