summaryrefslogtreecommitdiff
path: root/qadevOOo/runner/lib
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-13 10:08:31 +0200
committerNoel Grandin <noel@peralex.com>2014-08-13 10:24:10 +0200
commit34bcf9b498bccb5c924f4cec850ff15d88df6f07 (patch)
tree4d9604ec8c3b73639338ec45a0618b5daa5cf0ed /qadevOOo/runner/lib
parent347926e8e57c1825261daa46c1886aa2ebf9571b (diff)
java: remove dead methods
found by UCDetector Change-Id: I219caa8e680dba5a395541a778df6144841c4dde
Diffstat (limited to 'qadevOOo/runner/lib')
-rw-r--r--qadevOOo/runner/lib/Parameters.java38
-rw-r--r--qadevOOo/runner/lib/Status.java8
2 files changed, 1 insertions, 45 deletions
diff --git a/qadevOOo/runner/lib/Parameters.java b/qadevOOo/runner/lib/Parameters.java
index 9ee716eeefd0..1866b2646dac 100644
--- a/qadevOOo/runner/lib/Parameters.java
+++ b/qadevOOo/runner/lib/Parameters.java
@@ -170,47 +170,9 @@ public class Parameters implements XPropertySet {
}
}
- public static String getString(XPropertySet props, String name) {
- try {
- return (String)props.getPropertyValue(name);
- } catch (UnknownPropertyException e) {
- return null;
- } catch (WrappedTargetException e) {
- return null;
- }
- }
- public static Object get(XPropertySet props, String name) {
- try {
- return props.getPropertyValue(name);
- } catch (UnknownPropertyException e) {
- return null;
- } catch (WrappedTargetException e) {
- return null;
- }
- }
- public static Map<String, Object> toMap(XPropertySet props) {
- HashMap<String, Object> result = new HashMap<String, Object>(10);
- XPropertySetInfo setInfo = props.getPropertySetInfo();
- Property[] properties = setInfo.getProperties();
- for (int i = 0; i < properties.length; i++) {
- String name = properties[i].Name;
- Object value;
- try {
- value = props.getPropertyValue(name);
- } catch (WrappedTargetException e) {
- continue;
- } catch (UnknownPropertyException e) {
- continue;
- }
-
- result.put(name, value);
- }
-
- return result;
- }
}
diff --git a/qadevOOo/runner/lib/Status.java b/qadevOOo/runner/lib/Status.java
index 680e499cf8da..fc4a2b4fe9d3 100644
--- a/qadevOOo/runner/lib/Status.java
+++ b/qadevOOo/runner/lib/Status.java
@@ -86,13 +86,7 @@ public class Status extends SimpleStatus {
return new Status( SKIPPED, state );
}
- /**
- * This is a factory method for creating a Status representing that the
- * result of the activity was excluded. It always has FAILED state.
- */
- public static Status excluded() {
- return new Status( EXCLUDED, false );
- }
+
/**
* Creates a Status representing an activity failed for an arbitrary reason.