From 007f68b2251ead14a5a3db73e86ad6f22fbe62bc Mon Sep 17 00:00:00 2001 From: Augie Fackler Date: Fri, 10 Mar 2017 16:54:41 -0500 Subject: [PATCH] parsers: drop old nonnormalentries method This is okay to do because the Python will fall back transparently if the method is missing. --- mercurial/parsers.c | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/mercurial/parsers.c b/mercurial/parsers.c index 624a1c7dae..c12a2e3737 100644 --- a/mercurial/parsers.c +++ b/mercurial/parsers.c @@ -614,29 +614,6 @@ bail: return NULL; } -/* - * Build a set of non-normal entries from the dirstate dmap -*/ -static PyObject *nonnormalentries(PyObject *self, PyObject *args) -{ - PyObject *nonnset = NULL, *combined = NULL; - - combined = nonnormalotherparententries(self, args); - if (!combined) { - return NULL; - } - - nonnset = PyTuple_GetItem(combined, 0); - if (!nonnset) { - Py_DECREF(combined); - return NULL; - } - - Py_INCREF(nonnset); - Py_DECREF(combined); - return nonnset; -} - /* * Efficiently pack a dirstate object into its on-disk format. */ @@ -2854,8 +2831,6 @@ PyObject *lowerencode(PyObject *self, PyObject *args); static PyMethodDef methods[] = { {"pack_dirstate", pack_dirstate, METH_VARARGS, "pack a dirstate\n"}, - {"nonnormalentries", nonnormalentries, METH_VARARGS, - "create a set containing non-normal entries of given dirstate\n"}, {"nonnormalotherparententries", nonnormalotherparententries, METH_VARARGS, "create a set containing non-normal and other parent entries of given " "dirstate\n"},