From 8d6cf7a147acde4e4a4f7600af25ed614b07f90d Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 5 Aug 2014 11:08:06 +0200 Subject: java: remove dead methods Change-Id: I9f2e705fd603a7c8832c0f0772bee9f395380a0d --- ucb/qa/complex/tdoc/_XContent.java | 5 ---- ucb/qa/complex/ucb/UCB.java | 57 -------------------------------------- 2 files changed, 62 deletions(-) (limited to 'ucb') diff --git a/ucb/qa/complex/tdoc/_XContent.java b/ucb/qa/complex/tdoc/_XContent.java index d97349937dbd..19c91e0a895b 100644 --- a/ucb/qa/complex/tdoc/_XContent.java +++ b/ucb/qa/complex/tdoc/_XContent.java @@ -56,11 +56,6 @@ public class _XContent { private boolean disposed = false; private boolean firedEvent = false; - public void reset() { - disposed = false; - firedEvent = false; - } - public void contentEvent(com.sun.star.ucb.ContentEvent contentEvent) { firedEvent = true; } diff --git a/ucb/qa/complex/ucb/UCB.java b/ucb/qa/complex/ucb/UCB.java index 815209a32ce8..df6ea2d1723f 100644 --- a/ucb/qa/complex/ucb/UCB.java +++ b/ucb/qa/complex/ucb/UCB.java @@ -75,63 +75,6 @@ public class UCB { return xCmdProcessor.execute(aCommand, 0, null); } - private List listFiles(String path, Verifier verifier) throws Exception { - Object xContent = getContent(path); - - OpenCommandArgument2 aArg = new OpenCommandArgument2(); - aArg.Mode = OpenMode.ALL; - aArg.Priority = 32768; - - // Fill info for the properties wanted. - aArg.Properties = new Property[] { new Property()}; - - aArg.Properties[0].Name = "Title"; - aArg.Properties[0].Handle = -1; - - XDynamicResultSet xSet; - - xSet = - UnoRuntime.queryInterface(XDynamicResultSet.class, executeCommand(xContent, "open", aArg)); - - XResultSet xResultSet = xSet.getStaticResultSet(); - - List files = new ArrayList(); - - if (xResultSet.first()) - { - // obtain XContentAccess interface for child content access and XRow for properties - XContentAccess xContentAccess = UnoRuntime.queryInterface(XContentAccess.class, xResultSet); - XRow xRow = UnoRuntime.queryInterface(XRow.class, xResultSet); - do - { - // Obtain URL of child. - String aId = xContentAccess.queryContentIdentifierString(); - // First column: Title (column numbers are 1-based!) - String aTitle = xRow.getString(1); - if (aTitle.length() == 0 && xRow.wasNull()) - { - //ignore - } - else - { - files.add(aTitle); - } - } while (xResultSet.next()); // next child - } - - if (verifier != null) - { - for (int i = 0; i < files.size(); i++) - { - if (!verifier.verify(files.get(i))) - { - files.remove(i--); - } - } - } - return files; - } - public Object getContentProperty( Object content, String propName, -- cgit v1.2.3