pgen.c: Delete pointless global capture of the null event handler.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 28 Nov 2019 18:34:01 +0000 (18:34 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 11 Apr 2020 11:49:31 +0000 (12:49 +0100)
I think this must have been ancient debugging code that never got
removed.

pgen.c

diff --git a/pgen.c b/pgen.c
index 3c2a792..f1a11f4 100644 (file)
--- 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));