Patchwork D12355: revlog: remove unused `rank` variable from D12209

login
register
mail settings
Submitter phabricator
Date March 4, 2022, 9:02 p.m.
Message ID <differential-rev-PHID-DREV-viqmcgqzmgok3goespke-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/50696/
State New
Headers show

Comments

phabricator - March 4, 2022, 9:02 p.m.
martinvonz created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D12355

AFFECTED FILES
  mercurial/cext/revlog.c

CHANGE DETAILS




To: martinvonz, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/mercurial/cext/revlog.c b/mercurial/cext/revlog.c
--- a/mercurial/cext/revlog.c
+++ b/mercurial/cext/revlog.c
@@ -579,7 +579,6 @@ 
 static int index_fast_rank(indexObject *self, Py_ssize_t pos)
 {
 	Py_ssize_t length = index_length(self);
-	int rank;
 
 	if (self->format_version != format_cl2 || pos >= length) {
 		return rank_unknown;