summaryrefslogtreecommitdiff
path: root/py/modules/IcePy/Communicator.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2009-05-11 12:33:14 -0230
committerDwayne Boone <dwayne@zeroc.com>2009-05-11 12:33:14 -0230
commit1fb6c38f2f6e33e3ef804aafda324c1bcb0ac7b5 (patch)
treed95f06135aa5844e5d914e8bb37b96d4b2401dca /py/modules/IcePy/Communicator.cpp
parentBug 3885 - do not use localhost as node name in demos (diff)
downloadice-1fb6c38f2f6e33e3ef804aafda324c1bcb0ac7b5.tar.bz2
ice-1fb6c38f2f6e33e3ef804aafda324c1bcb0ac7b5.tar.xz
ice-1fb6c38f2f6e33e3ef804aafda324c1bcb0ac7b5.zip
Bug 3878 - remove some deprecated features
Diffstat (limited to 'py/modules/IcePy/Communicator.cpp')
-rw-r--r--py/modules/IcePy/Communicator.cpp72
1 files changed, 0 insertions, 72 deletions
diff --git a/py/modules/IcePy/Communicator.cpp b/py/modules/IcePy/Communicator.cpp
index 223cfcde993..6a6484c75ab 100644
--- a/py/modules/IcePy/Communicator.cpp
+++ b/py/modules/IcePy/Communicator.cpp
@@ -793,74 +793,6 @@ communicatorFindObjectFactory(CommunicatorObject* self, PyObject* args)
extern "C"
#endif
static PyObject*
-communicatorSetDefaultContext(CommunicatorObject* self, PyObject* args)
-{
- PyErr_Warn(PyExc_DeprecationWarning, STRCAST("setDefaultContext is deprecated, use per-proxy contexts or implicit contexts (if applicable) instead."));
-
- PyObject* dict;
- if(!PyArg_ParseTuple(args, STRCAST("O!"), &PyDict_Type, &dict))
- {
- return 0;
- }
-
- Ice::Context ctx;
- if(!dictionaryToContext(dict, ctx))
- {
- return 0;
- }
-
- try
- {
- (*self->communicator)->setDefaultContext(ctx);
- }
- catch(const Ice::Exception& ex)
- {
- setPythonException(ex);
- return 0;
-
- }
-
- Py_INCREF(Py_None);
- return Py_None;
-}
-
-#ifdef WIN32
-extern "C"
-#endif
-static PyObject*
-communicatorGetDefaultContext(CommunicatorObject* self)
-{
- PyErr_Warn(PyExc_DeprecationWarning, STRCAST("getDefaultContext is deprecated, use per-proxy contexts or implicit contexts (if applicable) instead."));
-
- Ice::Context ctx;
- try
- {
- ctx = (*self->communicator)->getDefaultContext();
- }
- catch(const Ice::Exception& ex)
- {
- setPythonException(ex);
- return 0;
- }
-
- PyObjectHandle dict = PyDict_New();
- if(!dict.get())
- {
- return 0;
- }
-
- if(!contextToDictionary(ctx, dict.get()))
- {
- return 0;
- }
-
- return dict.release();
-}
-
-#ifdef WIN32
-extern "C"
-#endif
-static PyObject*
communicatorGetImplicitContext(CommunicatorObject* self)
{
Ice::ImplicitContextPtr implicitContext = (*self->communicator)->getImplicitContext();
@@ -1202,10 +1134,6 @@ static PyMethodDef CommunicatorMethods[] =
PyDoc_STR(STRCAST("addObjectFactory(factory, id) -> None")) },
{ STRCAST("findObjectFactory"), reinterpret_cast<PyCFunction>(communicatorFindObjectFactory), METH_VARARGS,
PyDoc_STR(STRCAST("findObjectFactory(id) -> Ice.ObjectFactory")) },
- { STRCAST("setDefaultContext"), reinterpret_cast<PyCFunction>(communicatorSetDefaultContext), METH_VARARGS,
- PyDoc_STR(STRCAST("setDefaultContext(ctx) -> None")) },
- { STRCAST("getDefaultContext"), reinterpret_cast<PyCFunction>(communicatorGetDefaultContext), METH_NOARGS,
- PyDoc_STR(STRCAST("getDefaultContext() -> Ice.Context")) },
{ STRCAST("getImplicitContext"), reinterpret_cast<PyCFunction>(communicatorGetImplicitContext), METH_NOARGS,
PyDoc_STR(STRCAST("getImplicitContext() -> Ice.ImplicitContext")) },
{ STRCAST("getProperties"), reinterpret_cast<PyCFunction>(communicatorGetProperties), METH_NOARGS,