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

java: remove some unused code

Change-Id: If1cdc67535b11d9309503b14ffad2aa3718661c6
üst 14bc8188
......@@ -162,12 +162,6 @@ public class _XComponent {
} // finished _dispose()
/**
* Forces object recreation.
*/
protected void after() {
}
} // finished class _XComponent
......@@ -73,12 +73,6 @@ public class _XInitialization {
return result ;
} // finished _initialize()
/**
* Disposes object environment.
*/
public void after() {
}
} // finished class _XInitialization
......@@ -63,9 +63,4 @@ public class _XUIConfiguration {
return !xListener.actionWasTriggered();
}
/**
* Dispose because the UIConfigurationManager has to be recreated
*/
public void after() {
}
}
......@@ -150,14 +150,6 @@ public class ProcessHandler
this(cmdLine, log, null, null, 0);
}
/**
* Creates instance with specified external command and set the time out for the command.
*/
public ProcessHandler(String cmdLine, int timeOut)
{
this(cmdLine, null, null, null, timeOut);
}
/**
* Creates instance with specified external command which
* will be executed in the some work directory and
......
......@@ -21,26 +21,6 @@ package helper;
public class StringHelper
{
/**
* removes quotes if both exists at start and at end
*/
public static String removeSurroundQuoteIfExists(String _sPath)
{
String sNewPath = _sPath;
if (
(_sPath.startsWith("\"") && _sPath.endsWith("\"")) ||
(_sPath.startsWith("'") && _sPath.endsWith("'"))
)
{
// remove trailing quotes, if exists
sNewPath = sNewPath.substring(1);
// remove trailing quotes, if exists
sNewPath = sNewPath.substring(0, sNewPath.length() - 1);
}
return sNewPath;
}
public static String removeQuoteIfExists(String _sPath)
{
String sNewPath = _sPath;
......
......@@ -95,21 +95,5 @@ public class _XDataPilotTable {
return bResult;
}
/**
* Test sets new value of the cell obtained by object relation
* 'CELLFORCHANGE', and checks value of the cell obtained by object
* relation 'CELLFORCHECK'.<p>
* Has <b>OK</b> status if value of the cell obtained by object relation
* 'CELLFORCHECK' is changed. <p>
*/
public boolean _refresh(){
xCellForChange.setValue(changeValue);
double oldData = xCellForCheck.getValue();
oObj.refresh();
double newData = xCellForCheck.getValue();
System.out.println("Old data:" + oldData + "; new data:" + newData);
return oldData != newData;
}
}
......@@ -39,7 +39,6 @@ abstract public class ObjectView
{
public ObjectView (ObjectViewContainer aContainer)
{
maContainer = aContainer;
mxContext = null;
}
......@@ -78,6 +77,4 @@ abstract public class ObjectView
/// Reference to the current object to display information about.
protected XAccessibleContext mxContext;
protected ObjectViewContainer maContainer;
}
......@@ -68,15 +68,6 @@ public class _XComponent {
private final XEventListener listener1 = new MyEventListener();
private final XEventListener listener2 = new MyEventListener2();
/**
* For the cfgmgr2.OSetElement tests: dispose the owner element.
*/
protected void before() {
// do not dispose this component, but parent instead
// altDispose = (XComponent)tEnv.getObjRelation("XComponent.DisposeThis");
}
/**
* Adds two listeners. <p>
* Has OK status if then the first listener will receive an event
......@@ -112,40 +103,6 @@ public class _XComponent {
private boolean disposed = false;
/**
* Disposes the object and then check appropriate listeners were
* called or not. <p>
* Method tests to be completed successfully :
* <ul>
* <li> <code>removeEventListener</code> : method must remove one of two
* listeners. </li>
* </ul> <p>
* Has OK status if liseter removed wasn't called and other listener
* was.
*/
public boolean _dispose() {
disposed = false;
log.println( "begin dispose" + Thread.currentThread());
oObj.dispose();
util.utils.pause(500);
if (Loutput[0]!=null) log.println(Loutput[0]);
if (Loutput[1]!=null) log.println(Loutput[1]);
log.println( "end dispose" + Thread.currentThread());
disposed = true;
// check that dispose() works OK.
return listenerDisposed[0] && !listenerDisposed[1];
} // finished _dispose()
/**
* Forces object recreation.
*/
protected void after() {
}
} // finished class _XComponent
......@@ -69,7 +69,6 @@ $(eval $(call gb_Jar_add_sourcefiles,commonwizards,\
wizards/com/sun/star/wizards/ui/event/XActionListenerAdapter \
wizards/com/sun/star/wizards/ui/event/XItemListenerAdapter \
wizards/com/sun/star/wizards/ui/event/XTextListenerAdapter \
wizards/com/sun/star/wizards/ui/event/XWindowListenerAdapter \
wizards/com/sun/star/wizards/ui/AggregateComponent \
wizards/com/sun/star/wizards/ui/CommandFieldSelection \
wizards/com/sun/star/wizards/ui/ControlScroller \
......
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
package com.sun.star.wizards.ui.event;
import com.sun.star.awt.WindowEvent;
import com.sun.star.awt.XWindowListener;
import com.sun.star.lang.EventObject;
public class XWindowListenerAdapter implements XWindowListener {
public void disposing(EventObject event) {
}
public void windowHidden(EventObject event) {
}
public void windowMoved(WindowEvent event) {
}
public void windowResized(WindowEvent event) {
}
public void windowShown(EventObject event) {
}
}
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