summaryrefslogtreecommitdiff
path: root/py/modules/IcePy/ObjectAdapter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'py/modules/IcePy/ObjectAdapter.cpp')
-rw-r--r--py/modules/IcePy/ObjectAdapter.cpp66
1 files changed, 0 insertions, 66 deletions
diff --git a/py/modules/IcePy/ObjectAdapter.cpp b/py/modules/IcePy/ObjectAdapter.cpp
index 9ade400daf8..3d28edd272a 100644
--- a/py/modules/IcePy/ObjectAdapter.cpp
+++ b/py/modules/IcePy/ObjectAdapter.cpp
@@ -1269,68 +1269,6 @@ adapterCreateReverseProxy(ObjectAdapterObject* self, PyObject* args)
extern "C"
#endif
static PyObject*
-adapterAddRouter(ObjectAdapterObject* self, PyObject* args)
-{
- PyObject* proxyType = lookupType("Ice.RouterPrx");
- PyObject* proxy;
- if(!PyArg_ParseTuple(args, STRCAST("O!"), proxyType, &proxy))
- {
- return NULL;
- }
-
- Ice::RouterPrx router = Ice::RouterPrx::uncheckedCast(getProxy(proxy));
-
- assert(self->adapter);
- try
- {
- AllowThreads allowThreads; // Release Python's global interpreter lock during blocking calls.
- (*self->adapter)->addRouter(router);
- }
- catch(const Ice::Exception& ex)
- {
- setPythonException(ex);
- return NULL;
- }
-
- Py_INCREF(Py_None);
- return Py_None;
-}
-
-#ifdef WIN32
-extern "C"
-#endif
-static PyObject*
-adapterRemoveRouter(ObjectAdapterObject* self, PyObject* args)
-{
- PyObject* proxyType = lookupType("Ice.RouterPrx");
- PyObject* proxy;
- if(!PyArg_ParseTuple(args, STRCAST("O!"), proxyType, &proxy))
- {
- return NULL;
- }
-
- Ice::RouterPrx router = Ice::RouterPrx::uncheckedCast(getProxy(proxy));
-
- assert(self->adapter);
- try
- {
- AllowThreads allowThreads; // Release Python's global interpreter lock during blocking calls.
- (*self->adapter)->removeRouter(router);
- }
- catch(const Ice::Exception& ex)
- {
- setPythonException(ex);
- return NULL;
- }
-
- Py_INCREF(Py_None);
- return Py_None;
-}
-
-#ifdef WIN32
-extern "C"
-#endif
-static PyObject*
adapterSetLocator(ObjectAdapterObject* self, PyObject* args)
{
PyObject* proxyType = lookupType("Ice.LocatorPrx");
@@ -1406,10 +1344,6 @@ static PyMethodDef AdapterMethods[] =
PyDoc_STR(STRCAST("createDirectProxy(identity) -> Ice.ObjectPrx")) },
{ STRCAST("createReverseProxy"), (PyCFunction)adapterCreateReverseProxy, METH_VARARGS,
PyDoc_STR(STRCAST("createReverseProxy(identity) -> Ice.ObjectPrx")) },
- { STRCAST("addRouter"), (PyCFunction)adapterAddRouter, METH_VARARGS,
- PyDoc_STR(STRCAST("addRouter(proxy) -> None")) },
- { STRCAST("removeRouter"), (PyCFunction)adapterRemoveRouter, METH_VARARGS,
- PyDoc_STR(STRCAST("removeRouter(proxy) -> None")) },
{ STRCAST("setLocator"), (PyCFunction)adapterSetLocator, METH_VARARGS,
PyDoc_STR(STRCAST("setLocator(proxy) -> None")) },
{ NULL, NULL} /* sentinel */