summaryrefslogtreecommitdiff
path: root/odk/examples/DevelopersGuide/GUI/MessageBox.java
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-04 16:12:55 +0200
committerNoel Grandin <noel@peralex.com>2014-08-05 11:31:49 +0200
commitf124688cfdfbe96ff2be5ab44ea5023725548146 (patch)
tree4874bf2b2504979b9733f200e05b68034c7eaefe /odk/examples/DevelopersGuide/GUI/MessageBox.java
parent36a74fe54a0cd99372ea646af31ce41ac5ec5b08 (diff)
java: remove various unused variables
Change-Id: Id9f30938f594cb6fe73bf40adfffa65ec1b42cd1
Diffstat (limited to 'odk/examples/DevelopersGuide/GUI/MessageBox.java')
-rw-r--r--odk/examples/DevelopersGuide/GUI/MessageBox.java8
1 files changed, 1 insertions, 7 deletions
diff --git a/odk/examples/DevelopersGuide/GUI/MessageBox.java b/odk/examples/DevelopersGuide/GUI/MessageBox.java
index 63b2d03d7511..c43b4743b290 100644
--- a/odk/examples/DevelopersGuide/GUI/MessageBox.java
+++ b/odk/examples/DevelopersGuide/GUI/MessageBox.java
@@ -176,7 +176,7 @@ public class MessageBox {
XMessageBox xMessageBox = xMessageBoxFactory.createMessageBox(_xParentWindowPeer, MessageBoxType.ERRORBOX, com.sun.star.awt.MessageBoxButtons.BUTTONS_OK, _sTitle, _sMessage);
xComponent = UnoRuntime.queryInterface(XComponent.class, xMessageBox);
if (xMessageBox != null){
- short nResult = xMessageBox.execute();
+ xMessageBox.execute();
}
} catch (com.sun.star.uno.Exception ex) {
ex.printStackTrace(System.err);
@@ -216,23 +216,17 @@ public class MessageBox {
public static int getRedColorShare(int _nColor) {
int nRed = _nColor/65536;
int nRedModulo = _nColor % 65536;
- int nGreen = nRedModulo / 256;
- int nGreenModulo = (nRedModulo % 256);
- int nBlue = nGreenModulo;
return nRed;
}
public static int getGreenColorShare(int _nColor) {
- int nRed = _nColor/65536;
int nRedModulo = _nColor % 65536;
int nGreen = nRedModulo / 256;
return nGreen;
}
public static int getBlueColorShare(int _nColor) {
- int nRed = _nColor/65536;
int nRedModulo = _nColor % 65536;
- int nGreen = nRedModulo / 256;
int nGreenModulo = (nRedModulo % 256);
int nBlue = nGreenModulo;
return nBlue;