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

java: remove unused fields

Change-Id: I25fef9590a34ec8d9aab182b3d267ae3cd649a87
üst 8d6cf7a1
......@@ -44,7 +44,6 @@ public class LocalOfficeConnection
public static final String OFFICE_ID_SUFFIX = "_Office";
private Process mProcess;
private ContainerFactory mContainerFactory;
private XComponentContext mContext;
private String mURL;
......@@ -134,14 +133,13 @@ public class LocalOfficeConnection
}
/**
* Sets an AWT container catory.
* Sets an AWT container factory.
*
* @param containerFactory This is a application provided AWT container
* factory.
*/
public void setContainerFactory(ContainerFactory containerFactory)
{
mContainerFactory = containerFactory;
}
/**
......@@ -185,8 +183,6 @@ public class LocalOfficeConnection
catch ( RuntimeException aExc ) {}
}
mComponents.clear();
mContainerFactory = null;
mContext = null;
}
......
......@@ -50,7 +50,6 @@ public class LocalOfficeConnection
public static final String OFFICE_ID_SUFFIX = "_Office";
private Process mProcess;
private ContainerFactory mContainerFactory;
private XComponentContext mContext;
private XBridge mBridge;
......@@ -196,7 +195,6 @@ public class LocalOfficeConnection
*/
public void setContainerFactory(ContainerFactory containerFactory)
{
mContainerFactory = containerFactory;
}
/**
......@@ -258,8 +256,6 @@ public class LocalOfficeConnection
mBridge = null;
}
mContainerFactory = null;
mContext = null;
}
......
......@@ -348,7 +348,6 @@ public final class Bug107753_Test extends ComplexTestCase {
private static final class Provider implements XInstanceProvider {
public Provider(TestBed testBed) {
this.testBed = testBed;
}
public Object getInstance(String instanceName) {
......@@ -362,8 +361,6 @@ public final class Bug107753_Test extends ComplexTestCase {
}
};
}
private final TestBed testBed;
}
public interface XTransport extends XInterface {
......
......@@ -86,11 +86,6 @@ public class FlatFileAccess extends ComplexTestCase
super( i_day, i_month, i_year );
}
EqualityDate( Date i_date )
{
super( i_date.Day, i_date.Month, i_date.Year );
}
@Override
public boolean equals( Object i_compare )
{
......
......@@ -52,8 +52,6 @@ public class OptionsEventHandler {
private XComponentContext m_cmpCtx;
private XMultiComponentFactory m_xMCF;
private XNameAccess m_xAccessLeaves;
/**Names of supported options pages.
......@@ -71,7 +69,6 @@ public class OptionsEventHandler {
public _OptionsEventHandler(XComponentContext xCompContext) {
m_cmpCtx = xCompContext;
m_xMCF = m_cmpCtx.getServiceManager();
//Create the com.sun.star.configuration.ConfigurationUpdateAccess
//for the registry node which contains the data for our option
......
......@@ -45,10 +45,6 @@ public class StatusIndicator implements com.sun.star.task.XStatusIndicator
/**
* @member m_nRange max value for any progress
*/
private int m_nRange ;
private boolean m_bWasUsed ;
......@@ -59,7 +55,6 @@ public class StatusIndicator implements com.sun.star.task.XStatusIndicator
*/
public StatusIndicator( int nOut)
{
m_nRange = 100 ;
m_bWasUsed = false;
}
......@@ -79,7 +74,6 @@ public class StatusIndicator implements com.sun.star.task.XStatusIndicator
synchronized(this)
{
m_bWasUsed = true;
m_nRange = nRange;
}
impl_show();
}
......@@ -94,7 +88,6 @@ public class StatusIndicator implements com.sun.star.task.XStatusIndicator
synchronized(this)
{
m_bWasUsed = true;
m_nRange = 100;
}
impl_show();
}
......
......@@ -55,29 +55,11 @@ public class LicenseTest {
static private final String __serviceName =
"org.openoffice.LicenseTest";
/** The initial component contextr, that gives access to
* the service manager, supported singletons, ...
* It's often later used
*/
private XComponentContext m_cmpCtx;
/** The service manager, that gives access to all registered services.
* It's often later used
*/
private XMultiComponentFactory m_xMCF;
/** The constructor of the inner class has a XMultiServiceFactory parameter.
* @param xmultiservicefactoryInitialization A special service factory
* could be introduced while initializing.
*/
public _LicenseTest(XComponentContext xCompContext) {
try {
m_cmpCtx = xCompContext;
m_xMCF = m_cmpCtx.getServiceManager();
}
catch( Exception e ) {
e.printStackTrace();
}
}
/** This method returns an array of all supported service names.
......
......@@ -179,8 +179,6 @@ public class ReportDesignerTest
}
private OfficeProvider m_aProvider = null;
private String m_sMailAddress = null;
private String m_sUPDMinor;
......
......@@ -488,16 +488,13 @@ XInitialization {
}
public class ActionListenerImpl implements com.sun.star.awt.XActionListener {
private XControlContainer _xControlCont;
private String _buttonName;
public ActionListenerImpl( XControlContainer xControlCont, String buttonName ) {
_xControlCont = xControlCont;
_buttonName = buttonName;
}
// XEventListener
public void disposing( EventObject eventObject ) {
_xControlCont = null;
}
// XActionListener
......
......@@ -46,7 +46,6 @@ public final class LocalOfficeImpl
private final static String STORAGE_MRG_SINGLETON =
"/singletons/drafts.com.sun.star.script.framework.storage.theScriptStorageManager";
private transient String mOfficePath;
private transient XMultiComponentFactory mComponentFactory;
private transient XComponentContext mComponentContext;
/**
......@@ -66,7 +65,6 @@ public final class LocalOfficeImpl
protected void connect(String officePath, int port)
throws ConnectException
{
mOfficePath = officePath;
try {
bootstrap(port);
} catch (java.lang.Exception ex) {
......
......@@ -22,9 +22,6 @@ import java.lang.String;
import java.io.*;
import javax.swing.*;
public class Register{
private static String[] singletonDefParams = { "drafts.com.sun.star.script.framework.theScriptRuntimeForJava=drafts.com.sun.star.script.framework.ScriptRuntimeForJava",
"drafts.com.sun.star.script.framework.storage.theScriptStorageManager=drafts.com.sun.star.script.framework.storage.ScriptStorageManager",
"drafts.com.sun.star.script.framework.theScriptRuntimeManager=drafts.com.sun.star.script.framework.ScriptRuntimeManager"};
public static boolean register(String path, JLabel statusLabel) {
......
......@@ -79,7 +79,6 @@ public class Welcome extends javax.swing.JPanel implements ActionListener {
private javax.swing.JPanel welcomePanel;
private javax.swing.JTextArea area;
private InstallWizard wizard;
private static final String [] versions = { "StarOffice 6.1" };
private boolean nextButtonEnable = true;
// End of variables declaration//GEN-END:variables
......
......@@ -24,7 +24,6 @@ import javax.swing.*;
public class XmlUpdater extends Thread {
private String classesPath = null;
private String installPath;
private boolean netInstall;
private boolean bindingsInstall;
......@@ -154,8 +153,6 @@ public class XmlUpdater extends Thread {
internalThread = Thread.currentThread();
classesPath= installPath.concat(File.separator+"program"+File.separator+"classes"+File.separator);
String progpath=installPath;
progpath= progpath.concat(File.separator+"program"+File.separator);
......
......@@ -42,29 +42,11 @@ public class TestExtension {
static private final String __serviceName =
"com.sun.star.comp.smoketest.TestExtension";
/** The initial component contextr, that gives access to
* the service manager, supported singletons, ...
* It's often later used
*/
private XComponentContext m_cmpCtx;
/** The service manager, that gives access to all registered services.
* It's often later used
*/
private XMultiComponentFactory m_xMCF;
/** The constructor of the inner class has a XMultiServiceFactory parameter.
* @param xmultiservicefactoryInitialization A special service factory
* could be introduced while initializing.
*/
public _TestExtension(XComponentContext xCompContext) {
try {
m_cmpCtx = xCompContext;
m_xMCF = m_cmpCtx.getServiceManager();
}
catch( Exception e ) {
e.printStackTrace();
}
}
/** This method returns an array of all supported service names.
......
......@@ -35,18 +35,7 @@ public class SmoketestCommandEnvironment extends WeakBase
static private final String __serviceName =
"com.sun.star.deployment.test.SmoketestCommandEnvironment";
private XComponentContext m_cmpCtx;
private XMultiComponentFactory m_xMCF;
public SmoketestCommandEnvironment(XComponentContext xCompContext) {
try {
m_cmpCtx = xCompContext;
m_xMCF = m_cmpCtx.getServiceManager();
}
catch( Exception e ) {
e.printStackTrace();
}
}
public static String[] getServiceNames() {
......
......@@ -70,7 +70,6 @@ class Canvas
setShowDescriptions (true);
setShowNames (true);
setAntialiasing (true);
maLastWidgetSize = new Dimension (0,0);
}
/** Tell the canvas which tree view to use to highlight accessible
......@@ -340,7 +339,6 @@ class Canvas
mnVOffset = 0;
}
}
maLastWidgetSize = aWidgetSize;
}
......@@ -463,7 +461,4 @@ class Canvas
maBoundingBox;
private JTree
maTree;
// The size of the widget at the last call of setupTransformation()
private Dimension
maLastWidgetSize;
}
......@@ -60,12 +60,10 @@ public class OfficeDocument
{
private XWindowPeer xWindowPeer;
private XMultiServiceFactory xMSF;
/** Creates a new instance of OfficeDocument */
public OfficeDocument(XMultiServiceFactory _xMSF)
{
xMSF = _xMSF;
}
public static void attachEventCall(XComponent xComponent, String EventName, String EventType, String EventURL)
......
......@@ -57,7 +57,6 @@ class ReportTextDocument extends com.sun.star.wizards.text.TextDocument implemen
private String sMsgTableNotExisting;
private String sMsgCommonReportError;
private String ContentTemplatePath;
private String LayoutTemplatePath;
private String sMsgEndAutopilot;
public boolean bIsCurLandscape;
public TextTableHandler oTextTableHandler;
......@@ -160,7 +159,6 @@ class ReportTextDocument extends com.sun.star.wizards.text.TextDocument implemen
{
try
{
this.LayoutTemplatePath = LayoutTemplatePath;
boolean bOldIsCurLandscape = AnyConverter.toBoolean(Helper.getUnoPropertyValue(ReportPageStyle, ISLANDSCAPE));
oTextStyleHandler.loadStyleTemplates(LayoutTemplatePath, "LoadPageStyles");
changePageOrientation(bOldIsCurLandscape);
......
......@@ -41,14 +41,12 @@ public class TextSectionHandler
public XTextSectionsSupplier xTextSectionsSupplier;
private XMultiServiceFactory xMSFDoc;
private XTextDocument xTextDocument;
private XText xText;
/** Creates a new instance of TextSectionHandler */
public TextSectionHandler(XMultiServiceFactory xMSF, XTextDocument xTextDocument)
{
this.xMSFDoc = xMSF;
this.xTextDocument = xTextDocument;
xText = xTextDocument.getText();
xTextSectionsSupplier = UnoRuntime.queryInterface(XTextSectionsSupplier.class, xTextDocument);
}
......
......@@ -48,7 +48,6 @@ public class TextTableHandler
public XMultiServiceFactory xMSFDoc;
public XTextDocument xTextDocument;
public XSimpleText xSimpleText;
private XText xText;
private NumberFormatter oNumberFormatter;
private Locale aCharLocale;
......@@ -59,7 +58,6 @@ public class TextTableHandler
{
this.xMSFDoc = xMSF;
this.xTextDocument = xTextDocument;
xText = xTextDocument.getText();
xTextTablesSupplier = UnoRuntime.queryInterface(XTextTablesSupplier.class, xTextDocument);
xSimpleText = UnoRuntime.queryInterface(XSimpleText.class, xTextDocument.getText());
XNumberFormatsSupplier xNumberFormatsSupplier = UnoRuntime.queryInterface(XNumberFormatsSupplier.class, xTextDocument);
......
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