summaryrefslogtreecommitdiff
path: root/unodevtools
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2013-03-03 06:01:17 +0100
committerThomas Arnhold <thomas@arnhold.org>2013-03-03 11:48:02 +0100
commit919e27746650f223699a97f8f3d4922101d6d739 (patch)
tree33909252ee42540d05ce94998354fd221c247a57 /unodevtools
parent9657161c2a55cc9456e37f7220c5fdecae1829bb (diff)
loplugin: unused variables and commented code
Change-Id: I01f1f1d112767b576d7cfc6e25fe95385de2c0cf
Diffstat (limited to 'unodevtools')
-rw-r--r--unodevtools/source/skeletonmaker/cpptypemaker.cxx1
-rw-r--r--unodevtools/source/skeletonmaker/javatypemaker.cxx14
-rw-r--r--unodevtools/source/unodevtools/typeblob.cxx1
3 files changed, 0 insertions, 16 deletions
diff --git a/unodevtools/source/skeletonmaker/cpptypemaker.cxx b/unodevtools/source/skeletonmaker/cpptypemaker.cxx
index 7bac1f765a36..689b5170750a 100644
--- a/unodevtools/source/skeletonmaker/cpptypemaker.cxx
+++ b/unodevtools/source/skeletonmaker/cpptypemaker.cxx
@@ -466,7 +466,6 @@ void printMethods(std::ostream & o,
reader.getSuperTypeName(i)));
}
- OString stype(codemaker::convertString(super.getTypeName()));
printMethods(o, options, manager, super, generated, delegate,
classname, indentation, defaultvalue, propertyhelper);
}
diff --git a/unodevtools/source/skeletonmaker/javatypemaker.cxx b/unodevtools/source/skeletonmaker/javatypemaker.cxx
index 88e961d36408..e2e4a6dc9d8a 100644
--- a/unodevtools/source/skeletonmaker/javatypemaker.cxx
+++ b/unodevtools/source/skeletonmaker/javatypemaker.cxx
@@ -404,16 +404,6 @@ void printMethods(std::ostream & o,
}
sal_uInt16 method = 0;
for ( sal_uInt16 i = 0; i < reader.getFieldCount(); ++i ) {
-// OString fieldName(
-// codemaker::convertString(reader.getFieldName(i)).
-// replace('/', '.'));
-// OString fieldType(
-// codemaker::convertString(reader.getFieldTypeName(i)).
-// replace('/', '.'));
-// attributes.insert(StringPairHashMap::value_type(fieldName,
-// std::pair<OString, sal_Int16>(
-// fieldType, reader.getFieldFlags(i))));
-
o << indentation << "public ";
printType(o,
options, manager,
@@ -422,9 +412,6 @@ void printMethods(std::ostream & o,
<< codemaker::convertString(reader.getFieldName(i)).getStr()
<< "()";
- OUString mn = reader.getMethodName(method);
- OUString fn = reader.getFieldName(i);
-
if ( method < reader.getMethodCount()
&& reader.getMethodFlags(method) == RT_MODE_ATTRIBUTE_GET
&& reader.getMethodName(method) == reader.getFieldName(i) )
@@ -459,7 +446,6 @@ void printMethods(std::ostream & o,
}
// REMOVE next line
- OUString tmp = reader.getFieldName(i);
if ( (reader.getFieldFlags(i) & RT_ACCESS_READONLY) == 0 ) {
bool setAttrMethod = false;
o << indentation << "public void set"
diff --git a/unodevtools/source/unodevtools/typeblob.cxx b/unodevtools/source/unodevtools/typeblob.cxx
index d877e44faf8b..b2d1ab601356 100644
--- a/unodevtools/source/unodevtools/typeblob.cxx
+++ b/unodevtools/source/unodevtools/typeblob.cxx
@@ -176,7 +176,6 @@ void writeMethodData( typereg::Writer& rWriter, sal_uInt32 calculatedMemberOffse
Sequence< Reference< XMethodParameter > > parameters(xMethod->getParameters());
Sequence< Reference< XTypeDescription > > exceptions(xMethod->getExceptions());
- OUString name(xMethod->getMemberName());
sal_uInt16 methodIndex = (sal_uInt16)(xMethod->getPosition()
- calculatedMemberOffset);
sal_uInt16 paramCount = (sal_uInt16)parameters.getLength();