diff -r 3e69bef2031a -r d5528ac9b4f2 mercurial/cext/parsers.c --- a/mercurial/cext/parsers.c Wed Sep 22 11:28:52 2021 +0200 +++ b/mercurial/cext/parsers.c Wed Sep 22 11:33:29 2021 +0200 @@ -1233,7 +1233,6 @@ static void module_init(PyObject *mod) { - PyObject *capsule = NULL; PyModule_AddIntConstant(mod, "version", version); /* This module constant has two purposes. First, it lets us unit test @@ -1250,12 +1249,6 @@ manifest_module_init(mod); revlog_module_init(mod); - capsule = PyCapsule_New( - dirstate_item_from_v1_data, - "mercurial.cext.parsers.make_dirstate_item_CAPI", NULL); - if (capsule != NULL) - PyModule_AddObject(mod, "make_dirstate_item_CAPI", capsule); - if (PyType_Ready(&dirstateItemType) < 0) { return; }