##// END OF EJS Templates
cext: remove unused variables...
Joerg Sonnenberger -
r45701:9719e118 default
parent child Browse files
Show More
@@ -103,8 +103,6 b' static PyObject *hashflags(line *l)'
103 {
103 {
104 char flag;
104 char flag;
105 PyObject *hash = nodeof(l, &flag);
105 PyObject *hash = nodeof(l, &flag);
106 ssize_t hlen;
107 Py_ssize_t hplen, flen;
108 PyObject *flags;
106 PyObject *flags;
109 PyObject *tup;
107 PyObject *tup;
110
108
@@ -296,7 +294,6 b' static PyObject *lmiter_iterentriesnext('
296 Py_ssize_t pl;
294 Py_ssize_t pl;
297 line *l;
295 line *l;
298 char flag;
296 char flag;
299 Py_ssize_t consumed;
300 PyObject *ret = NULL, *path = NULL, *hash = NULL, *flags = NULL;
297 PyObject *ret = NULL, *path = NULL, *hash = NULL, *flags = NULL;
301 l = lmiter_nextline((lmIter *)o);
298 l = lmiter_nextline((lmIter *)o);
302 if (!l) {
299 if (!l) {
@@ -752,7 +752,6 b' static int add_roots_get_min(indexObject'
752 char phase)
752 char phase)
753 {
753 {
754 Py_ssize_t len = index_length(self);
754 Py_ssize_t len = index_length(self);
755 PyObject *iter;
756 PyObject *item;
755 PyObject *item;
757 PyObject *iterator;
756 PyObject *iterator;
758 int rev, minrev = -1;
757 int rev, minrev = -1;
@@ -790,14 +789,12 b' static PyObject *compute_phases_map_sets'
790 static const char trackedphases[] = {1, 2, 32, 96};
789 static const char trackedphases[] = {1, 2, 32, 96};
791 PyObject *ret = NULL;
790 PyObject *ret = NULL;
792 PyObject *roots = Py_None;
791 PyObject *roots = Py_None;
793 PyObject *idx = NULL;
794 PyObject *pyphase = NULL;
792 PyObject *pyphase = NULL;
795 PyObject *pyrev = NULL;
793 PyObject *pyrev = NULL;
796 PyObject *phaseroots = NULL;
794 PyObject *phaseroots = NULL;
797 PyObject *phasessize = NULL;
795 PyObject *phasessize = NULL;
798 PyObject *phasesets[4] = {NULL, NULL, NULL, NULL};
796 PyObject *phasesets[4] = {NULL, NULL, NULL, NULL};
799 Py_ssize_t len = index_length(self);
797 Py_ssize_t len = index_length(self);
800 const char *currentphase;
801 char *phases = NULL;
798 char *phases = NULL;
802 int minphaserev = -1, rev, i;
799 int minphaserev = -1, rev, i;
803 const int numphases = (int)(sizeof(phasesets) / sizeof(phasesets[0]));
800 const int numphases = (int)(sizeof(phasesets) / sizeof(phasesets[0]));
@@ -880,7 +877,7 b' static PyObject *compute_phases_map_sets'
880 phaseroots = _dict_new_presized(numphases);
877 phaseroots = _dict_new_presized(numphases);
881 if (phaseroots == NULL)
878 if (phaseroots == NULL)
882 goto release;
879 goto release;
883 for (int i = 0; i < numphases; ++i) {
880 for (i = 0; i < numphases; ++i) {
884 pyphase = PyInt_FromLong(trackedphases[i]);
881 pyphase = PyInt_FromLong(trackedphases[i]);
885 if (pyphase == NULL)
882 if (pyphase == NULL)
886 goto release;
883 goto release;
General Comments 0
You need to be logged in to leave comments. Login now