summaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-03-10 17:38:24 +0000
committerrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-03-10 17:38:24 +0000
commit44d36411a1bdffdc1cc5e8c3f692406b9e626e70 (patch)
treee79769cda1bae28c78449941cb76a052bb2d2568 /java
parentcf399471b8eb691c198758ffebfb6ac8114daa72 (diff)
Remove unused methods and fields
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@752179 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ReferenceImpl.java20
-rw-r--r--java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ServiceImpl.java7
2 files changed, 8 insertions, 19 deletions
diff --git a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ReferenceImpl.java b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ReferenceImpl.java
index 455286a798..1fc8a1ce3c 100644
--- a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ReferenceImpl.java
+++ b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ReferenceImpl.java
@@ -25,7 +25,6 @@ import java.util.List;
import org.apache.tuscany.sca.assembly.Binding;
import org.apache.tuscany.sca.assembly.Callback;
import org.apache.tuscany.sca.assembly.ComponentService;
-import org.apache.tuscany.sca.assembly.Endpoint;
import org.apache.tuscany.sca.assembly.EndpointReference2;
import org.apache.tuscany.sca.assembly.Reference;
import org.apache.tuscany.sca.interfacedef.InterfaceContract;
@@ -42,20 +41,15 @@ public class ReferenceImpl extends AbstractReferenceImpl implements Reference, C
private List<PolicySet> policySets = new ArrayList<PolicySet>();
private List<ComponentService> targets = new ArrayList<ComponentService>();
private Callback callback;
- private List<PolicySet> applicablePolicySets = new ArrayList<PolicySet>();
private boolean promotionOverride;
private List<EndpointReference2> endpointReferences = new ArrayList<EndpointReference2>();
- public List<PolicySet> getApplicablePolicySets() {
- return applicablePolicySets;
- }
-
/**
* Constructs a new reference.
*/
protected ReferenceImpl() {
}
-
+
@Override
public Object clone() throws CloneNotSupportedException {
ReferenceImpl clone = (ReferenceImpl)super.clone();
@@ -121,18 +115,18 @@ public class ReferenceImpl extends AbstractReferenceImpl implements Reference, C
public void setCallback(Callback callback) {
this.callback = callback;
}
-
+
public void setPolicySets(List<PolicySet> policySets) {
- this.policySets = policySets;
+ this.policySets = policySets;
}
-
+
/**
* By default return the interface contract for the reference
*/
- public InterfaceContract getInterfaceContract(Binding binding){
+ public InterfaceContract getInterfaceContract(Binding binding) {
return getInterfaceContract();
- }
-
+ }
+
public List<EndpointReference2> getEndpointReferences() {
return endpointReferences;
}
diff --git a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ServiceImpl.java b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ServiceImpl.java
index 28ea33cc81..daad1466f0 100644
--- a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ServiceImpl.java
+++ b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/ServiceImpl.java
@@ -24,7 +24,6 @@ import java.util.List;
import org.apache.tuscany.sca.assembly.Binding;
import org.apache.tuscany.sca.assembly.Callback;
-import org.apache.tuscany.sca.assembly.Endpoint;
import org.apache.tuscany.sca.assembly.Endpoint2;
import org.apache.tuscany.sca.assembly.Service;
import org.apache.tuscany.sca.interfacedef.InterfaceContract;
@@ -39,12 +38,8 @@ public class ServiceImpl extends AbstractServiceImpl implements Service, Cloneab
private List<Binding> bindings = new ArrayList<Binding>();
private List<PolicySet> policySets = new ArrayList<PolicySet>();
private Callback callback;
- private List<PolicySet> applicablePolicySets = new ArrayList<PolicySet>();
private List<Endpoint2> endpoints = new ArrayList<Endpoint2>();
-
- public List<PolicySet> getApplicablePolicySets() {
- return applicablePolicySets;
- }
+
/**
* Constructs a new service.