changeset 22:ccb5fef13104

I *think* we no longer need unload... refcounted object deallocator should do?
author Chris Cannam
date Tue, 25 Nov 2014 17:09:54 +0000
parents 4b4a7ec1080d
children 9dc444c79aa5
files vampyhost.cpp
diffstat 1 files changed, 0 insertions(+), 26 deletions(-) [+]
line wrap: on
line diff
--- 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 */
 };