From b9d63d49be66ed1bfc4a76924f1c52ec3630adc8 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 12 Jan 2016 15:27:41 +0200 Subject: remove some unused Java code found by UCDetector Change-Id: Ic0295a24b26e206eb53eda2da540755477df86df --- .../qa/integration/extensions/MethodHandler.java | 4 +- framework/qa/complex/dispatches/Interceptor.java | 2 +- qadevOOo/Jar_OOoRunner.mk | 3 - qadevOOo/runner/helper/BuildEnvTools.java | 182 --------------------- qadevOOo/runner/helper/ComplexDescGetter.java | 2 +- .../runner/helper/ParameterNotFoundException.java | 30 ---- qadevOOo/runner/helper/ProcessHandler.java | 79 +-------- qadevOOo/runner/helper/WindowListener.java | 55 ------- qadevOOo/runner/lib/MultiPropertyTest.java | 4 - qadevOOo/runner/util/PropertyName.java | 18 -- qadevOOo/tests/java/ifc/connection/_XAcceptor.java | 2 - .../tests/java/ifc/container/_XEnumeration.java | 1 - .../tests/java/ifc/document/_XMimeTypeInfo.java | 1 - .../java/ifc/drawing/_GraphicObjectShape.java | 1 - .../tests/java/ifc/sheet/_XUsedAreaCursor.java | 1 - qadevOOo/tests/java/ifc/text/_XFootnote.java | 2 - .../tests/java/ifc/text/_XParagraphCursor.java | 2 - .../tests/java/ifc/text/_XTextRangeCompare.java | 1 - .../tests/java/ifc/text/_XTextTableCursor.java | 1 - .../mod/_dbaccess/OSingleSelectQueryComposer.java | 2 - .../tests/java/mod/_fwk/ControlMenuController.java | 1 - sc/qa/complex/dataPilot/_XDataPilotTable.java | 2 - .../script/framework/browse/ParcelBrowseNode.java | 4 - .../star/script/framework/io/XStorageHelper.java | 4 - .../sun/star/wiki/WikiProtocolSocketFactory.java | 2 - .../persistent_window_states/DocumentHandle.java | 2 - .../com/sun/star/wizards/common/FileAccess.java | 2 - .../com/sun/star/wizards/common/ParaStyled.java | 2 +- .../sun/star/wizards/document/OfficeDocument.java | 1 - .../com/sun/star/wizards/table/TableWizard.java | 4 +- .../converter/xml/sxc/SxcDocumentSerializer.java | 1 - 31 files changed, 8 insertions(+), 410 deletions(-) delete mode 100644 qadevOOo/runner/helper/BuildEnvTools.java delete mode 100644 qadevOOo/runner/helper/ParameterNotFoundException.java delete mode 100644 qadevOOo/runner/helper/WindowListener.java diff --git a/extensions/qa/integration/extensions/MethodHandler.java b/extensions/qa/integration/extensions/MethodHandler.java index c362fae60609..05fe1a798ac5 100644 --- a/extensions/qa/integration/extensions/MethodHandler.java +++ b/extensions/qa/integration/extensions/MethodHandler.java @@ -55,12 +55,12 @@ public class MethodHandler implements XPropertyHandler public void addEventListener(com.sun.star.lang.XEventListener _eventListener) { - // ingnoring this + // ignoring this } public void addPropertyChangeListener(com.sun.star.beans.XPropertyChangeListener _propertyChangeListener) throws com.sun.star.lang.NullPointerException { - // ingnoring this + // ignoring this } public Object convertToControlValue(String _propertyName, Object _propertyValue, com.sun.star.uno.Type type) throws com.sun.star.beans.UnknownPropertyException diff --git a/framework/qa/complex/dispatches/Interceptor.java b/framework/qa/complex/dispatches/Interceptor.java index 5ce13a52bb66..ecbac44216ec 100644 --- a/framework/qa/complex/dispatches/Interceptor.java +++ b/framework/qa/complex/dispatches/Interceptor.java @@ -158,7 +158,7 @@ public class Interceptor implements XDispatch, * solar mutex. If this hangs - you can see a beautiful deadlock * when you attach your debugger to the main process. */ - public void checkNoSolarMutexHeld() + private void checkNoSolarMutexHeld() { try { diff --git a/qadevOOo/Jar_OOoRunner.mk b/qadevOOo/Jar_OOoRunner.mk index 0e513f6ff085..2c21d7d3e2f9 100644 --- a/qadevOOo/Jar_OOoRunner.mk +++ b/qadevOOo/Jar_OOoRunner.mk @@ -58,7 +58,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\ qadevOOo/runner/graphical/FileHelper \ qadevOOo/runner/helper/APIDescGetter \ qadevOOo/runner/helper/AppProvider \ - qadevOOo/runner/helper/BuildEnvTools \ qadevOOo/runner/helper/CfgParser \ qadevOOo/runner/helper/ClParser \ qadevOOo/runner/helper/ComplexDescGetter \ @@ -70,7 +69,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\ qadevOOo/runner/helper/OfficeProvider \ qadevOOo/runner/helper/OfficeWatcher \ qadevOOo/runner/helper/OSHelper \ - qadevOOo/runner/helper/ParameterNotFoundException \ qadevOOo/runner/helper/ProcessHandler \ qadevOOo/runner/helper/PropertyHandlerFactroy \ qadevOOo/runner/helper/PropertyHandlerImpl \ @@ -78,7 +76,6 @@ $(eval $(call gb_Jar_add_sourcefiles,OOoRunner,\ qadevOOo/runner/helper/StringHelper \ qadevOOo/runner/helper/UnoProvider \ qadevOOo/runner/helper/URLHelper \ - qadevOOo/runner/helper/WindowListener \ qadevOOo/runner/lib/DynamicClassLoader \ qadevOOo/runner/lib/ExceptionStatus \ qadevOOo/runner/lib/MultiMethodTest \ diff --git a/qadevOOo/runner/helper/BuildEnvTools.java b/qadevOOo/runner/helper/BuildEnvTools.java deleted file mode 100644 index 60d328494f3e..000000000000 --- a/qadevOOo/runner/helper/BuildEnvTools.java +++ /dev/null @@ -1,182 +0,0 @@ -/* - * 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 helper; - -import java.io.File; -import java.io.PrintWriter; -import lib.TestParameters; -import share.LogWriter; -import util.*; - -/** - * This class support you to execute some shell commands in a build environment. At every call of commands - * a build environment was created and the commands will be executed. - * - */ -public class BuildEnvTools { - - private final TestParameters param; - private final LogWriter log; - private final boolean mDebug; - private final String mPlatform; - private final String mShell; - private final boolean mCygwin; - - /** - * This constructor creates an instance of BuildEncTools. It is verifying for all neccesarry - * parameters in TestParameters This must be: - *