From 28a4496c76acdab6cb851387e78366bb611f130f Mon Sep 17 00:00:00 2001 From: Herbert Dürr Date: Fri, 12 Jul 2013 09:10:27 +0000 Subject: Resolves: #i120788# remove unused members from PyUNO_callable_Internals Patch by: Tsutomu Uchino (cherry picked from commit 5e2c3fd88906494965979bd20ca852391bee3bac) Conflicts: pyuno/source/module/pyuno_impl.hxx Change-Id: If73d5f7b799f04b79b5cc71d2d44c797851b18d0 --- pyuno/source/module/pyuno.cxx | 6 +----- pyuno/source/module/pyuno_callable.cxx | 6 ------ pyuno/source/module/pyuno_impl.hxx | 2 -- 3 files changed, 1 insertion(+), 13 deletions(-) diff --git a/pyuno/source/module/pyuno.cxx b/pyuno/source/module/pyuno.cxx index 4c6191d4da30..58579ebe3105 100644 --- a/pyuno/source/module/pyuno.cxx +++ b/pyuno/source/module/pyuno.cxx @@ -342,8 +342,6 @@ PyObject *PyUNO_invoke( PyObject *object, const char *name , PyObject *args ) callable = PyUNO_callable_new ( me->members->xInvocation, attrName, - runtime.getImpl()->cargo->xInvocation, - runtime.getImpl()->cargo->xTypeConverter, ACCEPT_UNO_ANY); paras = args; } @@ -486,9 +484,7 @@ PyObject* PyUNO_getattr (PyObject* self, char* name) //Create a callable object to invoke this... PyRef ret = PyUNO_callable_new ( me->members->xInvocation, - attrName, - runtime.getImpl()->cargo->xInvocation, - runtime.getImpl()->cargo->xTypeConverter); + attrName); Py_XINCREF( ret.get() ); return ret.get(); diff --git a/pyuno/source/module/pyuno_callable.cxx b/pyuno/source/module/pyuno_callable.cxx index 4175c8066e76..24cae2cf9ad6 100644 --- a/pyuno/source/module/pyuno_callable.cxx +++ b/pyuno/source/module/pyuno_callable.cxx @@ -38,8 +38,6 @@ namespace pyuno typedef struct { Reference xInvocation; - Reference xInvocationFactory; - Reference xTypeConverter; OUString methodName; ConversionMode mode; } PyUNO_callable_Internals; @@ -240,8 +238,6 @@ static PyTypeObject PyUNO_callable_Type = PyRef PyUNO_callable_new ( const Reference &my_inv, const OUString & methodName, - const Reference &xInvocationFactory, - const Reference &tc, enum ConversionMode mode ) { PyUNO_callable* self; @@ -255,8 +251,6 @@ PyRef PyUNO_callable_new ( self->members = new PyUNO_callable_Internals; self->members->xInvocation = my_inv; self->members->methodName = methodName; - self->members->xInvocationFactory = xInvocationFactory; - self->members->xTypeConverter = tc; self->members->mode = mode; return PyRef( (PyObject*)self, SAL_NO_ACQUIRE ); diff --git a/pyuno/source/module/pyuno_impl.hxx b/pyuno/source/module/pyuno_impl.hxx index 95245230fb5a..b114b3c68bbf 100644 --- a/pyuno/source/module/pyuno_impl.hxx +++ b/pyuno/source/module/pyuno_impl.hxx @@ -227,8 +227,6 @@ com::sun::star::uno::TypeClass StringToTypeClass (char* string); PyRef PyUNO_callable_new ( const com::sun::star::uno::Reference &xInv, const OUString &methodName, - const com::sun::star::uno::Reference &ssf, - const com::sun::star::uno::Reference &tc, ConversionMode mode = REJECT_UNO_ANY ); PyObject* PyUNO_Type_new (const char *typeName , com::sun::star::uno::TypeClass t , const Runtime &r ); -- cgit v1.2.3