summaryrefslogtreecommitdiff
path: root/pyuno/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-11-12 15:59:48 +0100
committerStephan Bergmann <sbergman@redhat.com>2013-11-14 10:14:58 +0100
commit2236cd00235dab0e691916e024a62908b1b4c2f0 (patch)
tree649635e31597c091cf94233b4cfc5f070fb82a10 /pyuno/source
parent9a01133a66498b3ea637a7e75ed9094a5fc32c43 (diff)
-Werror,-Wunused-member-function
Change-Id: Ic4dba1d313c3a27ac02f9d382d2b55218e1bad10
Diffstat (limited to 'pyuno/source')
-rw-r--r--pyuno/source/module/pyuno_module.cxx12
1 files changed, 0 insertions, 12 deletions
diff --git a/pyuno/source/module/pyuno_module.cxx b/pyuno/source/module/pyuno_module.cxx
index 718759f4e88f..5513f0e051ce 100644
--- a/pyuno/source/module/pyuno_module.cxx
+++ b/pyuno/source/module/pyuno_module.cxx
@@ -88,15 +88,12 @@ class fillStructState
// How many positional arguments are consumed
// This is always the so-many first ones
sal_Int32 nPosConsumed;
- // The total number of members set, either by a keyword argument or a positional argument
- unsigned int nMembersSet;
public:
fillStructState()
: used (PyDict_New())
, initialised ()
, nPosConsumed (0)
- , nMembersSet (0)
{
if ( ! used )
throw RuntimeException("pyuno._createUnoStructHelper failed to create new dictionary", Reference< XInterface > ());
@@ -109,10 +106,6 @@ public:
{
PyDict_SetItem(used, key, Py_True);
}
- bool isUsed(PyObject *key) const
- {
- return Py_True == PyDict_GetItem(used, key);
- }
void setInitialised(OUString key, sal_Int32 pos = -1)
{
if (initialised[key])
@@ -130,7 +123,6 @@ public:
throw RuntimeException(buf.makeStringAndClear(), Reference< XInterface > ());
}
initialised[key] = true;
- ++nMembersSet;
if ( pos >= 0 )
++nPosConsumed;
}
@@ -146,10 +138,6 @@ public:
{
return nPosConsumed;
}
- int getCntMembersSet() const
- {
- return nMembersSet;
- }
};
static void fillStruct(