Blob Blame History Raw
--- resources/JuPyMake/JuPyMake.cpp.orig	2019-02-12 16:05:25.000000000 -0700
+++ resources/JuPyMake/JuPyMake.cpp	2019-03-11 20:55:50.028569517 -0600
@@ -137,12 +137,6 @@ struct module_state {
 static struct module_state _state;
 #endif
 
-static PyObject * error_out(PyObject *m) {
-    struct module_state *st = GETSTATE(m);
-    PyErr_SetString(st->error, "something bad happened");
-    return NULL;
-}
-
 static PyMethodDef JuPyMakeMethods[] = {
     {"ExecuteCommand",(PyCFunction)ExecuteCommand, METH_VARARGS,
      "Runs a polymake command"},
@@ -200,7 +194,6 @@ extern "C" void initJuPyMake(void)
 
     if (module == NULL)
         INITERROR;
-    struct module_state *st = GETSTATE(module);
     JuPyMakeError = PyErr_NewException(const_cast<char*>("JuPyMake.PolymakeError"), NULL, NULL );
     Py_INCREF( JuPyMakeError );