summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2009-07-21 10:13:26 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2009-07-21 10:13:26 +0000
commit0125a50d46119fe6d5b3d07004299b49a9aef36b (patch)
tree686b3293471d8cb2d1330613f97531c609757a7f
parent257800ee77c14bc438efc091a7a52149f459eaec (diff)
Remove code that has been refactored.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@796235 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--java/sca/modules/endpoint/src/main/java/org/apache/tuscany/sca/endpoint/impl/EndpointReferenceBuilderImpl.java30
1 files changed, 1 insertions, 29 deletions
diff --git a/java/sca/modules/endpoint/src/main/java/org/apache/tuscany/sca/endpoint/impl/EndpointReferenceBuilderImpl.java b/java/sca/modules/endpoint/src/main/java/org/apache/tuscany/sca/endpoint/impl/EndpointReferenceBuilderImpl.java
index 430b57f2ad..5b3c252880 100644
--- a/java/sca/modules/endpoint/src/main/java/org/apache/tuscany/sca/endpoint/impl/EndpointReferenceBuilderImpl.java
+++ b/java/sca/modules/endpoint/src/main/java/org/apache/tuscany/sca/endpoint/impl/EndpointReferenceBuilderImpl.java
@@ -133,34 +133,6 @@ public class EndpointReferenceBuilderImpl implements CompositeBuilder, EndpointR
// Not used now
}
- /*
- private void populateEndpointRegistry(Composite composite, Monitor monitor) {
-
- // register endpoints (and endpoint references) for each component
- for (Component component : composite.getComponents()) {
- // recurse for composite implementations
- Implementation implementation = component.getImplementation();
- if (implementation instanceof Composite) {
- populateEndpointRegistry((Composite)implementation, monitor);
- }
-
- // register endpoints
- for (ComponentService service : component.getServices()) {
- for (Endpoint2 endpoint : service.getEndpoints()){
- endpointRegistry.addEndpoint(endpoint);
- }
- }
-
- // register endpoint references
- for (ComponentReference reference : component.getReferences()) {
- for (EndpointReference2 endpointReference : reference.getEndpointReferences()){
- endpointRegistry.addEndpointReference(endpointReference);
- }
- }
- }
- }
- */
-
/**
* Build a single endpoint reference
*
@@ -207,7 +179,7 @@ public class EndpointReferenceBuilderImpl implements CompositeBuilder, EndpointR
// find the service in the endpoint registry
List<Endpoint> endpoints = endpointRegistry.findEndpoint(endpointReference);
- // TODO - do we exepect to find more than one endpoint in
+ // TODO - do we expect to find more than one endpoint in
// anything other than the autowire case?
if (endpoints.size() == 0) {
throw new SCARuntimeException("No endpoints found for EndpointReference " + endpointReference.toString());