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;