summaryrefslogtreecommitdiff
path: root/odk
diff options
context:
space:
mode:
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;
}