From 5f5fb4ecdcd4b811ddb2845e8a9ca8e531e0b1ed Mon Sep 17 00:00:00 2001 From: reger Date: Sun, 20 Jul 2014 02:49:49 +0200 Subject: [PATCH] remove unused static (RSS)search from protocol --- source/net/yacy/peers/Protocol.java | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/source/net/yacy/peers/Protocol.java b/source/net/yacy/peers/Protocol.java index cd270f69d..adc8531dc 100644 --- a/source/net/yacy/peers/Protocol.java +++ b/source/net/yacy/peers/Protocol.java @@ -68,11 +68,9 @@ import net.yacy.cora.document.feed.RSSFeed; import net.yacy.cora.document.feed.RSSMessage; import net.yacy.cora.document.feed.RSSReader; import net.yacy.cora.document.id.MultiProtocolURL; -import net.yacy.cora.federate.opensearch.SRURSSConnector; import net.yacy.cora.federate.solr.connector.RemoteSolrConnector; import net.yacy.cora.federate.solr.connector.SolrConnector; import net.yacy.cora.federate.solr.instance.RemoteInstance; -import net.yacy.cora.federate.yacy.CacheStrategy; import net.yacy.cora.order.Base64Order; import net.yacy.cora.order.Digest; import net.yacy.cora.protocol.ClientIdentification; @@ -556,29 +554,6 @@ public final class Protocol { } } - public static RSSFeed search( - final Seed targetSeed, - final String query, - final CacheStrategy verify, - final boolean global, - final long timeout, - final int startRecord, - final int maximumRecords) throws IOException { - final String address = - (targetSeed == null || targetSeed == Switchboard.getSwitchboard().peers.mySeed()) ? "localhost:" - + Switchboard.getSwitchboard().getConfig("port", "8090") : targetSeed.getClusterAddress(); - final String urlBase = "http://" + address + "/yacysearch.rss"; - return SRURSSConnector.loadSRURSS( - urlBase, - query, - timeout, - startRecord, - maximumRecords, - verify, - global, - ClientIdentification.yacyInternetCrawlerAgent); - } - protected static int primarySearch( final SearchEvent event, final String wordhashes,