comparison mercurial/parsers.c @ 21807:a96a3d1261c6

parsers: remove no longer used dirstate_unset
author Siddharth Agarwal <sid0@fb.com>
date Tue, 27 May 2014 15:22:23 -0700
parents 05bd2667df4d
children e250b8300e6e
comparison
equal deleted inserted replaced
21806:05bd2667df4d 21807:a96a3d1261c6
250 return -1; 250 return -1;
251 } 251 }
252 *v = (uint32_t)val; 252 *v = (uint32_t)val;
253 return 0; 253 return 0;
254 } 254 }
255
256 static PyObject *dirstate_unset;
257 255
258 /* 256 /*
259 * Efficiently pack a dirstate object into its on-disk format. 257 * Efficiently pack a dirstate object into its on-disk format.
260 */ 258 */
261 static PyObject *pack_dirstate(PyObject *self, PyObject *args) 259 static PyObject *pack_dirstate(PyObject *self, PyObject *args)
2031 2029
2032 nullentry = Py_BuildValue("iiiiiiis#", 0, 0, 0, 2030 nullentry = Py_BuildValue("iiiiiiis#", 0, 0, 0,
2033 -1, -1, -1, -1, nullid, 20); 2031 -1, -1, -1, -1, nullid, 20);
2034 if (nullentry) 2032 if (nullentry)
2035 PyObject_GC_UnTrack(nullentry); 2033 PyObject_GC_UnTrack(nullentry);
2036
2037 dirstate_unset = Py_BuildValue("ciii", 'n', 0, -1, -1);
2038 } 2034 }
2039 2035
2040 static int check_python_version(void) 2036 static int check_python_version(void)
2041 { 2037 {
2042 PyObject *sys = PyImport_ImportModule("sys"); 2038 PyObject *sys = PyImport_ImportModule("sys");