Kaydet (Commit) db203e59 authored tarafından Noel Grandin's avatar Noel Grandin

java: remove some unused fields

Change-Id: I1b6fb6b47439c448ac31983702772e2115c70d56
üst 4ae96069
......@@ -64,7 +64,6 @@ public class OOoBean
private transient OfficeDocument aDocument;
// slot command execution environment
private transient com.sun.star.frame.XDispatchProvider xDispatcher;
private transient com.sun.star.util.XURLTransformer xURLTransformer;
// properties
......@@ -389,7 +388,6 @@ public class OOoBean
}
aDocument = null;
xDispatcher = null;
aFrame = null;
// clear xFrameWindow
......@@ -589,14 +587,14 @@ public class OOoBean
com.sun.star.util.XURLTransformer.class,
xServiceFactory.createInstance( "com.sun.star.util.URLTransformer") );
try
{
xDispatcher = UnoRuntime.queryInterface(com.sun.star.frame.XDispatchProvider.class, aFrame);
}
catch (Exception e)
{
/*ignore!*/
}
try
{
UnoRuntime.queryInterface(com.sun.star.frame.XDispatchProvider.class, aFrame);
}
catch (Exception e)
{
/*ignore!*/
}
// get XComponentLoader from frame
com.sun.star.frame.XComponentLoader xLoader = UnoRuntime.queryInterface( com.sun.star.frame.XComponentLoader.class, aFrame );
......
......@@ -26,27 +26,22 @@ package net.adaptivebox.global;
import java.util.*;
public class GlobalString {
private static final String NEGLECT_TAG = "#$@";
/**
* Tokenize a String with given key.
* @param input the String to be tokenized.
* @param tokenKey the delimiters.
* @return a String array that include the elements of input string that
* divided by the tokenKey.
*/
public static String[] tokenize(String input , String tokenKey) {
ArrayList<String> v = new ArrayList<String>();
StringTokenizer t = new StringTokenizer(input, tokenKey);
while (t.hasMoreTokens()) {
v.add(t.nextToken());
/**
* Tokenize a String with given key.
*
* @param input the String to be tokenized.
* @param tokenKey the delimiters.
* @return a String array that include the elements of input string that
* divided by the tokenKey.
*/
public static String[] tokenize(String input, String tokenKey) {
ArrayList<String> v = new ArrayList<String>();
StringTokenizer t = new StringTokenizer(input, tokenKey);
while (t.hasMoreTokens()) {
v.add(t.nextToken());
}
return v.toArray(new String[v.size()]);
}
return v.toArray(new String[v.size()]);
}
}
\ No newline at end of file
......@@ -41,10 +41,6 @@ public class ParcelDescriptor {
public static final String
PARCEL_DESCRIPTOR_NAME = "parcel-descriptor.xml";
// Collection of all ParcelDescriptor created for files
private static final Map<File, ParcelDescriptor> PARCEL_DESCRIPTOR_MAP =
new HashMap<File, ParcelDescriptor>(5);
// This is the default contents of a parcel descriptor to be used when
// creating empty descriptors
private static final byte[] EMPTY_DOCUMENT =
......
......@@ -142,9 +142,6 @@ public class Helper
private static String[] m_pConfigStrings;
private static final String sHTMLHeader = "<HTML><HEAD><meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" /><TITLE></TITLE></HEAD><BODY>";
private static final String sHTMLFooter = "</BODY></HTML>";
private static MultiThreadedHttpConnectionManager m_aConnectionManager;
private static HttpClient m_aClient;
private static boolean m_bAllowConnection = true;
......
......@@ -67,12 +67,7 @@ public class TestComponent {
static public class _PerformancTestObject implements XPerformanceTest, XServiceInfo, XTypeProvider {
static private final String __serviceName = "com.sun.star.comp.benchmark.JavaTestObject";
private boolean _bool;
private char _char;
private byte _byte;
private short _short;
private int _long;
private int _ulong;
private long _hyper;
private float _float;
private double _double;
......
......@@ -57,7 +57,6 @@ public class FormHandler
private static final String CHECKBOX = "CheckBox";
private static final String DATEFIELD = "DateField";
private static final String FORMATTEDFIELD = "FormattedField";
private static final String IMAGECONTROL = "ImageControl";
private static final String TEXTFIELD = "TextField";
private static final String TIMEFIELD = "TimeField";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment