Kaydet (Commit) 28a4496c authored tarafından Herbert Dürr's avatar Herbert Dürr Kaydeden (comit) Caolán McNamara

Resolves: #i120788# remove unused members from PyUNO_callable_Internals

Patch by: Tsutomu Uchino <hanya.runo@gmail.com>

(cherry picked from commit 5e2c3fd8)

Conflicts:
	pyuno/source/module/pyuno_impl.hxx

Change-Id: If73d5f7b799f04b79b5cc71d2d44c797851b18d0
üst 3c57a9b8
......@@ -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();
......
......@@ -38,8 +38,6 @@ namespace pyuno
typedef struct
{
Reference<XInvocation2> xInvocation;
Reference<XSingleServiceFactory> xInvocationFactory;
Reference<XTypeConverter> xTypeConverter;
OUString methodName;
ConversionMode mode;
} PyUNO_callable_Internals;
......@@ -240,8 +238,6 @@ static PyTypeObject PyUNO_callable_Type =
PyRef PyUNO_callable_new (
const Reference<XInvocation2> &my_inv,
const OUString & methodName,
const Reference<XSingleServiceFactory> &xInvocationFactory,
const Reference<XTypeConverter> &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 );
......
......@@ -227,8 +227,6 @@ com::sun::star::uno::TypeClass StringToTypeClass (char* string);
PyRef PyUNO_callable_new (
const com::sun::star::uno::Reference<com::sun::star::script::XInvocation2> &xInv,
const OUString &methodName,
const com::sun::star::uno::Reference<com::sun::star::lang::XSingleServiceFactory> &ssf,
const com::sun::star::uno::Reference<com::sun::star::script::XTypeConverter> &tc,
ConversionMode mode = REJECT_UNO_ANY );
PyObject* PyUNO_Type_new (const char *typeName , com::sun::star::uno::TypeClass t , const Runtime &r );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment