summaryrefslogtreecommitdiff
path: root/odk
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-05 11:30:20 +0200
committerNoel Grandin <noel@peralex.com>2014-08-08 09:48:16 +0200
commite7a474b29ad87c03bdc3253cc62521b8af3a93e0 (patch)
tree653452cc25dbe5fb2a9cc36e59f7a95ceed8f17c /odk
parent27459c71ef5f6f27749de36334e8a20fe4731e62 (diff)
java: remove unused variables
Change-Id: I1b04fbf4d4562ff8e74f6ccdb2fd989d79cc869b
Diffstat (limited to 'odk')
-rw-r--r--odk/examples/DevelopersGuide/Charts/ChartInCalc.java2
-rw-r--r--odk/examples/DevelopersGuide/Components/Addons/JobsAddon/AsyncJob.java3
-rw-r--r--odk/examples/DevelopersGuide/GUI/MessageBox.java1
-rw-r--r--odk/examples/java/Storage/TestHelper.java2
4 files changed, 2 insertions, 6 deletions
diff --git a/odk/examples/DevelopersGuide/Charts/ChartInCalc.java b/odk/examples/DevelopersGuide/Charts/ChartInCalc.java
index 4192f866a6f2..617ae104e207 100644
--- a/odk/examples/DevelopersGuide/Charts/ChartInCalc.java
+++ b/odk/examples/DevelopersGuide/Charts/ChartInCalc.java
@@ -235,7 +235,6 @@ public class ChartInCalc
try
{
// determine the maximum value of the first series
- int nMaxIndex = 0;
XChartDataArray aDataArray = UnoRuntime.queryInterface(
XChartDataArray.class, maChartDocument.getData());
@@ -248,7 +247,6 @@ public class ChartInCalc
if( aData[ i ][ 1 ] > fMax )
{
fMax = aData[ i ][ 1 ];
- nMaxIndex = i;
}
}
diff --git a/odk/examples/DevelopersGuide/Components/Addons/JobsAddon/AsyncJob.java b/odk/examples/DevelopersGuide/Components/Addons/JobsAddon/AsyncJob.java
index a7bd3b9b1f35..a063a0b9bed6 100644
--- a/odk/examples/DevelopersGuide/Components/Addons/JobsAddon/AsyncJob.java
+++ b/odk/examples/DevelopersGuide/Components/Addons/JobsAddon/AsyncJob.java
@@ -154,14 +154,13 @@ public class AsyncJob extends WeakBase implements XServiceInfo, XAsyncJob
}
// Analyze the set of shared config data.
- java.lang.String sAlias = null;
if (lGenericConfig!=null)
{
c = lGenericConfig.length;
for (int i=0; i<c; ++i)
{
if (lGenericConfig[i].Name.equals("Alias"))
- sAlias = com.sun.star.uno.AnyConverter.toString(lGenericConfig[i].Value);
+ com.sun.star.uno.AnyConverter.toString(lGenericConfig[i].Value);
}
}
diff --git a/odk/examples/DevelopersGuide/GUI/MessageBox.java b/odk/examples/DevelopersGuide/GUI/MessageBox.java
index c43b4743b290..055659a04204 100644
--- a/odk/examples/DevelopersGuide/GUI/MessageBox.java
+++ b/odk/examples/DevelopersGuide/GUI/MessageBox.java
@@ -215,7 +215,6 @@ public class MessageBox {
public static int getRedColorShare(int _nColor) {
int nRed = _nColor/65536;
- int nRedModulo = _nColor % 65536;
return nRed;
}
diff --git a/odk/examples/java/Storage/TestHelper.java b/odk/examples/java/Storage/TestHelper.java
index 02a1bad0893a..9fa2faff086d 100644
--- a/odk/examples/java/Storage/TestHelper.java
+++ b/odk/examples/java/Storage/TestHelper.java
@@ -500,7 +500,7 @@ public class TestHelper {
try
{
- Object oSubStream = xParentStorage.openStreamElement( sName, ElementModes.READ );
+ xParentStorage.openStreamElement( sName, ElementModes.READ );
Error( "Encrypted stream '" + sName + "' was opened without password!" );
return false;
}