# HG changeset patch # User Chris Cannam # Date 1416935394 0 # Node ID ccb5fef13104ac0f0c96464671f80091e66304e7 # Parent 4b4a7ec1080d86fdfa712bcc0ae72d0ef835e44e I *think* we no longer need unload... refcounted object deallocator should do? diff -r 4b4a7ec1080d -r ccb5fef13104 vampyhost.cpp --- a/vampyhost.cpp Tue Nov 25 17:07:40 2014 +0000 +++ b/vampyhost.cpp Tue Nov 25 17:09:54 2014 +0000 @@ -280,29 +280,6 @@ } static PyObject * -vampyhost_unloadPlugin(PyObject *self, PyObject *args) -{ - cerr << "vampyhost_unloadPlugin" << endl; - - PyObject *pyPluginHandle; - - if (!PyArg_ParseTuple(args, "O", &pyPluginHandle)) { - PyErr_SetString(PyExc_TypeError, - "unloadPlugin() takes plugin handle (object) argument"); - return 0; - } - - PyPluginObject *pd = getPluginObject(pyPluginHandle); - if (!pd) return 0; - - delete pd->plugin; - pd->plugin = 0; // This is checked by getPluginObject, so we - // attempt to avoid repeated calls from blowing up - - return Py_True; -} - -static PyObject * vampyhost_initialise(PyObject *self, PyObject *args) { cerr << "vampyhost_initialise" << endl; @@ -621,9 +598,6 @@ {"process", vampyhost_process, METH_VARARGS, xx_foo_doc}, - {"unloadPlugin", vampyhost_unloadPlugin, METH_VARARGS, - xx_foo_doc}, - {0, 0} /* sentinel */ };