summaryrefslogtreecommitdiff
path: root/scripting/java
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 /scripting/java
parent27459c71ef5f6f27749de36334e8a20fe4731e62 (diff)
java: remove unused variables
Change-Id: I1b04fbf4d4562ff8e74f6ccdb2fd989d79cc869b
Diffstat (limited to 'scripting/java')
-rw-r--r--scripting/java/com/sun/star/script/framework/io/UCBStreamHandler.java2
-rw-r--r--scripting/java/com/sun/star/script/framework/io/XInputStreamImpl.java3
-rw-r--r--scripting/java/com/sun/star/script/framework/provider/beanshell/PlainSourceView.java1
3 files changed, 1 insertions, 5 deletions
diff --git a/scripting/java/com/sun/star/script/framework/io/UCBStreamHandler.java b/scripting/java/com/sun/star/script/framework/io/UCBStreamHandler.java
index 5377dacd94c1..e59dad95436e 100644
--- a/scripting/java/com/sun/star/script/framework/io/UCBStreamHandler.java
+++ b/scripting/java/com/sun/star/script/framework/io/UCBStreamHandler.java
@@ -99,8 +99,6 @@ public class UCBStreamHandler extends URLStreamHandler {
String sUrl = url.toString();
if ( !( sUrl.lastIndexOf(separator) == -1) ) {
String path = sUrl.substring(0, sUrl.lastIndexOf(separator));
- String file = sUrl.substring(
- sUrl.lastIndexOf(separator) + separator.length());
if ( m_xSimpleFileAccess.isReadOnly( path ) )
{
diff --git a/scripting/java/com/sun/star/script/framework/io/XInputStreamImpl.java b/scripting/java/com/sun/star/script/framework/io/XInputStreamImpl.java
index d1c1c6d46c2b..f5694477725e 100644
--- a/scripting/java/com/sun/star/script/framework/io/XInputStreamImpl.java
+++ b/scripting/java/com/sun/star/script/framework/io/XInputStreamImpl.java
@@ -70,10 +70,9 @@ public class XInputStreamImpl implements XInputStream
public void skipBytes( /*IN*/int nBytesToSkip ) throws com.sun.star.io.NotConnectedException, com.sun.star.io.BufferSizeExceededException, com.sun.star.io.IOException
{
- long bytesSkipped = 0;
try
{
- bytesSkipped = is.skip( nBytesToSkip );
+ is.skip( nBytesToSkip );
}
catch ( IOException e )
{
diff --git a/scripting/java/com/sun/star/script/framework/provider/beanshell/PlainSourceView.java b/scripting/java/com/sun/star/script/framework/provider/beanshell/PlainSourceView.java
index d70a8b4323f4..a752648f999f 100644
--- a/scripting/java/com/sun/star/script/framework/provider/beanshell/PlainSourceView.java
+++ b/scripting/java/com/sun/star/script/framework/provider/beanshell/PlainSourceView.java
@@ -201,7 +201,6 @@ class GlyphGutter extends JComponent {
for (int i = startLine; i < endLine; i++) {
String text;
text = Integer.toString(i + 1) + " ";
- int w = metrics.stringWidth(text);
int y = i * h;
g.setColor(Color.blue);
g.drawString(text, 0, y + ascent);