camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject [27/27] git commit: CAMEL-6827 Removed some unused code
Date Tue, 15 Jul 2014 11:40:21 GMT
CAMEL-6827 Removed some unused code


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/5ec6adfc
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/5ec6adfc
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/5ec6adfc

Branch: refs/heads/master
Commit: 5ec6adfc45aea951408613d9aebee45084c9d653
Parents: 732411b
Author: Willem Jiang <willem.jiang@gmail.com>
Authored: Tue Jul 15 19:38:49 2014 +0800
Committer: Willem Jiang <willem.jiang@gmail.com>
Committed: Tue Jul 15 19:38:49 2014 +0800

----------------------------------------------------------------------
 .../apache/camel/component/solr/SolrEndpoint.java | 18 +-----------------
 .../apache/camel/component/solr/SolrProducer.java |  3 ---
 2 files changed, 1 insertion(+), 20 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/5ec6adfc/components/camel-solr/src/main/java/org/apache/camel/component/solr/SolrEndpoint.java
----------------------------------------------------------------------
diff --git a/components/camel-solr/src/main/java/org/apache/camel/component/solr/SolrEndpoint.java
b/components/camel-solr/src/main/java/org/apache/camel/component/solr/SolrEndpoint.java
index 0605885..70dbd18 100644
--- a/components/camel-solr/src/main/java/org/apache/camel/component/solr/SolrEndpoint.java
+++ b/components/camel-solr/src/main/java/org/apache/camel/component/solr/SolrEndpoint.java
@@ -24,7 +24,6 @@ import org.apache.camel.Consumer;
 import org.apache.camel.Processor;
 import org.apache.camel.Producer;
 import org.apache.camel.impl.DefaultEndpoint;
-import org.apache.solr.client.solrj.SolrServer;
 import org.apache.solr.client.solrj.impl.CloudSolrServer;
 import org.apache.solr.client.solrj.impl.ConcurrentUpdateSolrServer;
 import org.apache.solr.client.solrj.impl.HttpSolrServer;
@@ -57,22 +56,7 @@ public class SolrEndpoint extends DefaultEndpoint {
         URL url = new URL(scheme + address);
         this.url = url.toString();
     }
-    
-    
-    private SolrServer createSolrServer() {
-        SolrServer server = null;
-        String zkHost = this.getZkHost();
-        if (zkHost == null) {
-            server = new HttpSolrServer(this.url);
-        } else {
-            CloudSolrServer cServer = new CloudSolrServer(zkHost);
-            cServer.setDefaultCollection(this.getCollection());
-            server = cServer;
-        }
-        return server;
-    }
-
-    
+   
     public void setZkHost(String zkHost) throws UnsupportedEncodingException {
         String decoded = URLDecoder.decode(zkHost, "UTF-8");
         this.zkHost = decoded;

http://git-wip-us.apache.org/repos/asf/camel/blob/5ec6adfc/components/camel-solr/src/main/java/org/apache/camel/component/solr/SolrProducer.java
----------------------------------------------------------------------
diff --git a/components/camel-solr/src/main/java/org/apache/camel/component/solr/SolrProducer.java
b/components/camel-solr/src/main/java/org/apache/camel/component/solr/SolrProducer.java
index 330a639..a315d14 100644
--- a/components/camel-solr/src/main/java/org/apache/camel/component/solr/SolrProducer.java
+++ b/components/camel-solr/src/main/java/org/apache/camel/component/solr/SolrProducer.java
@@ -25,9 +25,6 @@ import org.apache.camel.Exchange;
 import org.apache.camel.WrappedFile;
 import org.apache.camel.impl.DefaultProducer;
 import org.apache.solr.client.solrj.SolrServer;
-import org.apache.solr.client.solrj.impl.CloudSolrServer;
-import org.apache.solr.client.solrj.impl.ConcurrentUpdateSolrServer;
-import org.apache.solr.client.solrj.impl.HttpSolrServer;
 import org.apache.solr.client.solrj.request.ContentStreamUpdateRequest;
 import org.apache.solr.client.solrj.request.DirectXmlRequest;
 import org.apache.solr.client.solrj.request.UpdateRequest;


Mime
View raw message