parsers: drop old nonnormalentries method
authorAugie Fackler <augie@google.com>
Fri, 10 Mar 2017 16:54:41 -0500
changeset 31301 b6ab0adf379d
parent 31300 fffd1abb1337
child 31302 2cdb1239ff8c
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
--- a/mercurial/parsers.c	Fri Mar 10 16:53:00 2017 -0500
+++ b/mercurial/parsers.c	Fri Mar 10 16:54:41 2017 -0500
@@ -615,29 +615,6 @@
 }
 
 /*
- * 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.
  */
 static PyObject *pack_dirstate(PyObject *self, PyObject *args)
@@ -2854,8 +2831,6 @@
 
 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"},