Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

first Try with Eclipse / cleaned sources

orbiter548f0c6affc2
diff --git a/htroot/IndexCreate_p.java b/htroot/IndexCreate_p.java
index 7f5ed9bf4..313e13290 100644
--- a/htroot/IndexCreate_p.java
+++ b/htroot/IndexCreate_p.java
@@ -48,12 +48,10 @@ import java.io.OutputStream;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
-import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Iterator;
-import java.util.Locale;
import java.util.Map;
import de.anomic.data.wikiCode;
@@ -75,11 +73,6 @@ import de.anomic.yacy.yacyNewsPool;
public class IndexCreate_p {
- private static SimpleDateFormat dayFormatter = new SimpleDateFormat("yyyy/MM/dd", Locale.US);
- private static String daydate(Date date) {
- if (date == null) return ""; else return dayFormatter.format(date);
- }
-
public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) {
// return variable that accumulates replacements
plasmaSwitchboard switchboard = (plasmaSwitchboard) env;
@@ -91,8 +84,6 @@ public class IndexCreate_p {
switchboard.cleanProfiles();
- int i;
-
if (post != null) {
if (post.containsKey("crawlingstart")) {
// init crawl
@@ -211,7 +202,7 @@ public class IndexCreate_p {
serverFileUtils.write(fileContent,os);
os.close();
- String headline = scraper.getHeadline();
+ //String headline = scraper.getHeadline();
HashMap hyperlinks = (HashMap) scraper.getAnchors();
// creating a crawler profile
diff --git a/htroot/autoconfig.java b/htroot/autoconfig.java
index c034c8002..d7f473c15 100644
--- a/htroot/autoconfig.java
+++ b/htroot/autoconfig.java
@@ -44,7 +44,6 @@
//if the shell's current path is HTROOT
import de.anomic.http.httpHeader;
-import de.anomic.plasma.plasmaSwitchboard;
import de.anomic.server.serverObjects;
import de.anomic.server.serverSwitch;
@@ -61,7 +60,6 @@ public class autoconfig {
public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) {
serverObjects prop = new serverObjects();
- plasmaSwitchboard sb = (plasmaSwitchboard)env;
// getting the http host header
String hostSocket = (String) header.get(httpHeader.CONNECTION_PROP_HOST);