diff options
author | Will Deacon <will@kernel.org> | 2024-03-04 13:42:41 +0000 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2024-05-01 17:21:49 -0400 |
commit | dced92071d2135ccbec521cb4face63cafcdc407 (patch) | |
tree | 29feab979ce45976675888ef98441651791d9fcc | |
parent | 47bd55d3182d875802700670270f5ee0877a8d5d (diff) | |
download | b4-dced92071d2135ccbec521cb4face63cafcdc407.tar.gz |
ty: Remove unused 'matches' variable
Notice: this object is not reachable from any branch.
The 'matches' variable in auto_locate_series() is updated but not used
for anything, so remove it.
Signed-off-by: Will Deacon <will@kernel.org>
Notice: this object is not reachable from any branch.
-rw-r--r-- | src/b4/ty.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/b4/ty.py b/src/b4/ty.py index 950c357..97f4c44 100644 --- a/src/b4/ty.py +++ b/src/b4/ty.py @@ -198,7 +198,6 @@ def auto_locate_series(gitdir: Optional[str], jsondata: dict, branch: str, patchids = set(commits.keys()) # We need to find all of them in the commits found = list() - matches = 0 at = 0 for patch in jsondata['patches']: at += 1 @@ -206,7 +205,6 @@ def auto_locate_series(gitdir: Optional[str], jsondata: dict, branch: str, if patch[1] in patchids: logger.debug('Found: %s', patch[0]) found.append((at, commits[patch[1]][0])) - matches += 1 else: # try to locate by subject success = False @@ -215,7 +213,6 @@ def auto_locate_series(gitdir: Optional[str], jsondata: dict, branch: str, logger.debug('Matched using subject') found.append((at, commit[0])) success = True - matches += 1 break if success: @@ -229,7 +226,6 @@ def auto_locate_series(gitdir: Optional[str], jsondata: dict, branch: str, logger.debug('Matched using recorded message-id') found.append((at, commit[0])) success = True - matches += 1 break if success: break |