removed unused variables and warnings

pull/1/head
Michael Peter Christen 11 years ago
parent 7812146666
commit 453bfd0f17

@ -26,7 +26,9 @@
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
import com.google.common.io.Files;
import java.io.File;
import net.yacy.cora.protocol.RequestHeader;
import net.yacy.cora.storage.Configuration;
import net.yacy.cora.util.ConcurrentLog;
@ -35,6 +37,7 @@ import net.yacy.search.Switchboard;
import java.io.IOException;
import java.util.Iterator;
import net.yacy.cora.federate.opensearch.OpenSearchConnector;
import net.yacy.cora.federate.solr.SchemaConfiguration;
import net.yacy.search.SwitchboardConstants;
@ -188,6 +191,7 @@ public class ConfigHeuristics_p {
return prop;
}
@SuppressWarnings("unused")
private static void writeopensearchcfg(final Switchboard sb, final serverObjects post) {
// read index schema table flags

@ -41,7 +41,7 @@ import net.yacy.server.serverSwitch;
public final class Connections_p {
public static serverObjects respond(@SuppressWarnings("unused") final RequestHeader header, final serverObjects post, final serverSwitch env) {
public static serverObjects respond(@SuppressWarnings("unused") final RequestHeader header, @SuppressWarnings("unused") final serverObjects post, final serverSwitch env) {
// return variable that accumulates replacements
final Switchboard sb = (Switchboard) env;
final serverObjects prop = new serverObjects();
@ -49,19 +49,6 @@ public final class Connections_p {
// server sessions
// get the serverCore thread
final YaCyHttpServer httpd = sb.getHttpServer();
// determines if name lookup should be done or not
final boolean doNameLookup;
if (post != null) {
doNameLookup = post.getBoolean("nameLookup");
if (post.containsKey("closeServerSession")) {
final String sessionName = post.get("closeServerSession", null);
prop.put(serverObjects.ACTION_LOCATION,"");
return prop;
}
} else {
doNameLookup = false;
}
// waiting for all threads to finish
int idx = 0, numActivePending = 0;

@ -40,14 +40,7 @@ apfelmaennchen
<ul>
<li>Please report bugs in the official <a href="http://forum.yacy-websuche.de/" target="_blank">YaCy-Forum</a> - thanks!</li>
<li>29-09-2008: There seems to be timing problems with the RSS search result. In some cases no result is shown at all, even after a page reload!</li>
<li>29-09-2008: <strike>Bookmarks may crash if you create folders like /news and /newspaper with the same beginning! This is a bug in the folder recursion!</strike></li>
<li>15-09-2008: <strike>there seems to be a bug with the German translation: the link yacyui-bookmarks.html gets translated into yacyui-Lesezeichen.html :-(</strike></li>
<li>12-05-2008: <strike>if you click a tag in the tagcloud, the bookmarks table doesn't update properly and JavaScript returns a 'tabs is undefined' error...</strike></li>
<li>10-05-2008: <strike>there is an issue with Firefox 3.0b5 and the jQuery XML parsing of the search result (one symptom is the broken pagination)</strike></li>
<li>19-04-2008: <strike>if you open more than one search tab in Firefox 2.x or Safari, only the first result item is shown. I would be greatful for any hint...</strike></li>
<li>19-04-2008: <strike>resource types 'sciencenet' and 'bookmarks' doen't work yet. For 'sciencenet' we have to solve the Ajax cross domain restriction.</strike></li>
<li>19-04-2008: currently only contentdom="text" is working, all others will fail...</li>
<li>19-04-2008: <strike>language selection is not yet supported</strike></li>
</ul>

@ -269,9 +269,8 @@ public class DCEntry extends MultiMapSolrParams {
if (t != null) {
t = stripCDATA(t);
return t.split(";");
} else {
tx = this.getParams("dc:subject");
}
tx = this.getParams("dc:subject");
if (tx != null) {
for (int i = 0; i < tx.length; i++) {

@ -58,7 +58,6 @@
package net.yacy.server.http;
import java.io.File;
import java.util.Date;
import net.yacy.cora.document.analysis.Classification;
import net.yacy.cora.util.ConcurrentLog;

@ -99,7 +99,6 @@ public final class HTTPDProxyHandler {
private static Switchboard sb = null;
private static final HashSet<String> yellowList;
private static int timeout = 60000;
private static boolean yacyTrigger = true;
private static Process redirectorProcess = null;
private static boolean redirectorEnabled = false;
private static PrintWriter redirectorWriter = null;

Loading…
Cancel
Save