From 8583da1e934a49791ef8d86668f3d5c3c5dae1d7 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 12 Aug 2014 16:27:18 +0200 Subject: java: remove unused fields found by UCDetector Change-Id: I4a7c56a9918054c23469de5680658e7b501f0165 --- .../src/net/adaptivebox/global/BasicTag.java | 44 +++++++++++----------- .../src/net/adaptivebox/global/GlobalString.java | 2 +- .../NLPSolver/dialogs/controls/BaseControl.java | 4 +- 3 files changed, 24 insertions(+), 26 deletions(-) (limited to 'nlpsolver') diff --git a/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/global/BasicTag.java b/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/global/BasicTag.java index 8c21d8de3f1f..e1ba8786033e 100644 --- a/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/global/BasicTag.java +++ b/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/global/BasicTag.java @@ -12,29 +12,29 @@ package net.adaptivebox.global; public class BasicTag { - public static final String COMMAND_TAG = "%"; - public static final String TAB_TAG = "\t"; - public static final String LEFT_SMALL_BRACKET_TAG = "("; - public static final String RIGHT_SMALL_BRACKET_TAG = ")"; - public static final String LEFT_LARGE_BRACKET_TAG = "{"; - public static final String RIGHT_LARGE_BRACKET_TAG = "}"; - public static final String LEFT_BRACKET_TAG = "["; - public static final String RIGHT_BRACKET_TAG = "]"; - public static final String EQUAL_TAG = "="; - public static final String SPACE_TAG = " "; - public static final String SEMICOLON_TAG = ";"; - public static final String COLON_TAG = ":"; - public static final String COMMA_TAG = ","; + + + + + + + + + + + + + public static final String DOT_TAG = "."; - public static final String NULL_SEPARATE_TAG = " \t"; - public static final String SEPARATE_TAG = "|"; - public static final String UNDERLINE_TAG = "_"; - public static final String INC_TAG = "+"; - public static final String DEC_TAG = "-"; - public static final String ZERO_TAG = "0"; - public static final String EXP_TAG = "E"; - public static final String S_EXP_TAG = "e"; + + + + + + + + public static final String FILE_SEP_TAG = System.getProperty("file.separator"); - public static final String RETURN_TAG = System.getProperty("line.separator"); + } diff --git a/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/global/GlobalString.java b/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/global/GlobalString.java index b00ece9652ee..78f08e5dc213 100644 --- a/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/global/GlobalString.java +++ b/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/global/GlobalString.java @@ -28,7 +28,7 @@ import java.util.*; public class GlobalString { private static final String NEGLECT_TAG = "#$@"; - public static final String EQUAL_TAG = "="; + /** * Tokenize a String with given key. diff --git a/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/dialogs/controls/BaseControl.java b/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/dialogs/controls/BaseControl.java index a1de9d28ff29..23ba098c37f3 100644 --- a/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/dialogs/controls/BaseControl.java +++ b/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/dialogs/controls/BaseControl.java @@ -47,7 +47,7 @@ public abstract class BaseControl { private Object unoModel; protected Object unoControl; private XPropertySet properties; - private BaseControl parentControl; + public abstract String getName(); @@ -79,7 +79,6 @@ public abstract class BaseControl { XControlContainer controlContainer = UnoRuntime.queryInterface(XControlContainer.class, parentControl.unoControl); unoControl = controlContainer.getControl(name); - this.parentControl = parentControl; } catch (IllegalArgumentException ex) { Logger.getLogger(BaseControl.class.getName()).log(Level.SEVERE, null, ex); } catch (ElementExistException ex) { @@ -93,7 +92,6 @@ public abstract class BaseControl { this.context = context; unoModel = null; unoControl = null; - parentControl = null; } protected void setProperty(String name, Object value) { -- cgit