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