diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-13 10:08:31 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-13 10:24:10 +0200 |
commit | 34bcf9b498bccb5c924f4cec850ff15d88df6f07 (patch) | |
tree | 4d9604ec8c3b73639338ec45a0618b5daa5cf0ed /framework | |
parent | 347926e8e57c1825261daa46c1886aa2ebf9571b (diff) |
java: remove dead methods
found by UCDetector
Change-Id: I219caa8e680dba5a395541a778df6144841c4dde
Diffstat (limited to 'framework')
3 files changed, 2 insertions, 106 deletions
diff --git a/framework/qa/complex/framework/autosave/ConfigHelper.java b/framework/qa/complex/framework/autosave/ConfigHelper.java index 38a26a1975b6..d9ab6f50d5b3 100644 --- a/framework/qa/complex/framework/autosave/ConfigHelper.java +++ b/framework/qa/complex/framework/autosave/ConfigHelper.java @@ -61,20 +61,7 @@ class ConfigHelper } - public Object readRelativeKey(String sRelPath, - String sKey ) - throws com.sun.star.container.NoSuchElementException - { - try - { - XPropertySet xPath = UnoRuntime.queryInterface(XPropertySet.class, m_xConfig.getByHierarchicalName(sRelPath)); - return xPath.getPropertyValue(sKey); - } - catch(com.sun.star.uno.Exception ex) - { - throw new com.sun.star.container.NoSuchElementException(ex.getMessage()); - } - } + public void writeRelativeKey(String sRelPath, diff --git a/framework/qa/complex/framework/autosave/Protocol.java b/framework/qa/complex/framework/autosave/Protocol.java index c22372d0853b..db53ea6adb6b 100644 --- a/framework/qa/complex/framework/autosave/Protocol.java +++ b/framework/qa/complex/framework/autosave/Protocol.java @@ -473,24 +473,7 @@ public class Protocol extends JComponent } - /** - * For some modes it's necessary, that we write some additional - * information to the log. E.g. for html we must generate close targets. - */ - public synchronized void finish() - { - // Preferr HTML ... because we can't write ASCII and HTML contents to the same log file! - String sContent; - if ((m_nMode & MODE_HTML) == MODE_HTML) - sContent = impl_generateHTMLFooter(); - else - if ((m_nMode & MODE_ASCII) == MODE_ASCII) - sContent = impl_generateAsciiFooter(); - else - return; - impl_writeToLogFile(m_sFileName, true, sContent); - } /** @@ -533,47 +516,13 @@ public class Protocol extends JComponent } - /** - * log different property arrays. - * - * @param lProps - * the array of properties - */ - public synchronized void log( /*IN*/ com.sun.star.beans.NamedValue[] lProps ) - { - StringBuffer sValues = new StringBuffer(1000); - impl_logPropertyArray(sValues, lProps); - log(TYPE_SCOPE_OPEN | TYPE_INFO, "property array ["+lProps.length+"]:"); - log(TYPE_SCOPE_CLOSE | TYPE_INFO, sValues.toString() ); - } - public synchronized void log( /*IN*/ com.sun.star.beans.PropertyValue[] lProps ) - { - StringBuffer sValues = new StringBuffer(1000); - impl_logPropertyArray(sValues, lProps); - log(TYPE_SCOPE_OPEN | TYPE_INFO, "property array ["+lProps.length+"]:"); - log(TYPE_SCOPE_CLOSE | TYPE_INFO, sValues.toString() ); - } - public synchronized void log( /*IN*/ com.sun.star.beans.NamedValue aProp ) - { - StringBuffer sValue = new StringBuffer(1000); - impl_logProperty(sValue, aProp); - log(TYPE_SCOPE_OPEN | TYPE_INFO, "property:" ); - log(TYPE_SCOPE_CLOSE | TYPE_INFO, sValue.toString()); - } - public synchronized void log( /*IN*/ com.sun.star.beans.PropertyValue aProp ) - { - StringBuffer sValue = new StringBuffer(1000); - impl_logProperty(sValue, aProp); - log(TYPE_SCOPE_OPEN | TYPE_INFO, "property:" ); - log(TYPE_SCOPE_CLOSE | TYPE_INFO, sValue.toString()); - } public synchronized void log( /*IN*/ Object aAny ) { @@ -672,21 +621,7 @@ public class Protocol extends JComponent } - public synchronized void defineHyperlink( /*IN*/ String sTarget , - /*IN*/ String sDescription) - { - if ((m_nMode & MODE_HTML) != MODE_HTML) - return; - - StringBuffer sLog = new StringBuffer(1000); - sLog.append("<a href=\""); - sLog.append(sTarget ); - sLog.append("\">" ); - sLog.append(sDescription); - sLog.append("</a>" ); - log(TYPE_LINK, sLog.toString()); - } /** diff --git a/framework/qa/complex/framework/recovery/RecoveryTools.java b/framework/qa/complex/framework/recovery/RecoveryTools.java index feb10f4b255a..623f14141813 100644 --- a/framework/qa/complex/framework/recovery/RecoveryTools.java +++ b/framework/qa/complex/framework/recovery/RecoveryTools.java @@ -191,30 +191,7 @@ public class RecoveryTools { } } - /** - * This function close the office while calling terminate on the desktop. If - * this failed, the <CODE>ProcessHandler</CODE> kills the process. - * @param xMSF the <CODE>XMultiServiceFactory</CODE> - * @return <CODE>TRUE</CODE> if no exception was thrown, otherwise <CODE>FALSE</CODE> - */ - public boolean closeOffice(XMultiServiceFactory xMSF) { - try { - XDesktop desk = UnoRuntime.queryInterface( - XDesktop.class, xMSF.createInstance( - "com.sun.star.frame.Desktop")); - xMSF = null; - desk.terminate(); - log.println("Waiting until ProcessHandler loses the office..."); - - } - catch (java.lang.Exception e) { - e.printStackTrace(); - return false; - } - waitForClosedOffice(); - return true; - } /** * This function waits until the office is closed. If the closing time reach @@ -237,10 +214,7 @@ public class RecoveryTools { if (ph != null) ph.kill(); } - public void killOffice(){ - helper.ProcessHandler ph = (helper.ProcessHandler) param.get("AppProvider"); - ph.kill(); - } + /** * The office must be started WITH restore and crashreporter functionality. |