Mercurial > hg
diff mercurial/cext/revlog.c @ 45141:9719e118e4af
cext: remove unused variables
Differential Revision: https://phab.mercurial-scm.org/D8760
author | Joerg Sonnenberger <joerg@bec.de> |
---|---|
date | Thu, 16 Jul 2020 19:48:49 +0200 |
parents | 61e7464477ac |
children | 2bc5d1531235 |
line wrap: on
line diff
--- a/mercurial/cext/revlog.c Wed Jul 15 14:18:18 2020 -0400 +++ b/mercurial/cext/revlog.c Thu Jul 16 19:48:49 2020 +0200 @@ -752,7 +752,6 @@ char phase) { Py_ssize_t len = index_length(self); - PyObject *iter; PyObject *item; PyObject *iterator; int rev, minrev = -1; @@ -790,14 +789,12 @@ static const char trackedphases[] = {1, 2, 32, 96}; PyObject *ret = NULL; PyObject *roots = Py_None; - PyObject *idx = NULL; PyObject *pyphase = NULL; PyObject *pyrev = NULL; PyObject *phaseroots = NULL; PyObject *phasessize = NULL; PyObject *phasesets[4] = {NULL, NULL, NULL, NULL}; Py_ssize_t len = index_length(self); - const char *currentphase; char *phases = NULL; int minphaserev = -1, rev, i; const int numphases = (int)(sizeof(phasesets) / sizeof(phasesets[0])); @@ -880,7 +877,7 @@ phaseroots = _dict_new_presized(numphases); if (phaseroots == NULL) goto release; - for (int i = 0; i < numphases; ++i) { + for (i = 0; i < numphases; ++i) { pyphase = PyInt_FromLong(trackedphases[i]); if (pyphase == NULL) goto release;