From: Mark Wooding Date: Thu, 28 Nov 2019 18:34:01 +0000 (+0000) Subject: pgen.c: Delete pointless global capture of the null event handler. X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb-python/commitdiff_plain/416fd58fd070ec66f7b4e171ccb43021021a37a2 pgen.c: Delete pointless global capture of the null event handler. I think this must have been ancient debugging code that never got removed. --- diff --git a/pgen.c b/pgen.c index 3c2a792..f1a11f4 100644 --- a/pgen.c +++ b/pgen.c @@ -1099,8 +1099,6 @@ void pgen_pyinit(void) addmethods(methods); } -static PyObject *obj; - void pgen_pyinsert(PyObject *mod) { INSERT("PrimeFilter", pfilt_pytype); @@ -1110,7 +1108,7 @@ void pgen_pyinsert(PyObject *mod) INSERT("PrimeGenStepper", pgstep_pytype); INSERT("PrimeGenJumper", pgjump_pytype); INSERT("PrimeGenTester", pgtest_pytype); - INSERT("pgen_nullev", obj = pgev_stdev(0)); + INSERT("pgen_nullev", pgev_stdev(0)); INSERT("pgen_stdev", pgev_stdev(pgen_ev)); INSERT("pgen_spinev", pgev_stdev(pgen_evspin)); INSERT("pgen_subev", pgev_stdev(pgen_subev));