Skip to content

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

cleanup older unused classes

regerd9472d043a42
diff --git a/source/net/yacy/search/IndexAbstracts.java b/source/net/yacy/search/IndexAbstracts.java
deleted file mode 100644
index 165d2958c..000000000
--- a/source/net/yacy/search/IndexAbstracts.java
+++ /dev/null
@@ -1,69 +0,0 @@
-// IndexAbstracts.java
-// (C) 2005 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany
-// first published 10.10.2005 on http://yacy.net
-//
-// This is a part of YaCy, a peer-to-peer based web search engine
-//
-// $LastChangedDate$
-// $LastChangedRevision$
-// $LastChangedBy$
-//
-// LICENSE
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2 of the License, or
-// (at your option) any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
-package net.yacy.search;
-
-import java.util.Iterator;
-import java.util.Map;
-import java.util.TreeMap;
-
-public class IndexAbstracts extends TreeMap<String, TreeMap<String, String>> {
-
- private static final long serialVersionUID = 3037740969349726216L;
-
- public IndexAbstracts() {
- super();
- }
-
- public String wordsFromPeer(final String peerhash, final String urls) {
- Map.Entry<String, TreeMap<String, String>> entry;
- String word, peerlist, url, wordlist = "";
- TreeMap<String, String> urlPeerlist;
- int p;
- boolean hasURL;
- synchronized (this) {
- final Iterator<Map.Entry <String, TreeMap<String, String>>> i = this.entrySet().iterator();
- while (i.hasNext()) {
- entry = i.next();
- word = entry.getKey();
- urlPeerlist = entry.getValue();
- hasURL = true;
- for (int j = 0; j < urls.length(); j = j + 12) {
- url = urls.substring(j, j + 12);
- peerlist = urlPeerlist.get(url);
- p = (peerlist == null) ? -1 : peerlist.indexOf(peerhash);
- if ((p < 0) || (p % 12 != 0)) {
- hasURL = false;
- break;
- }
- }
- if (hasURL) wordlist += word;
- }
- }
- return wordlist;
- }
-
-}
\ No newline at end of file
diff --git a/source/net/yacy/search/StorageQueueEntry.java b/source/net/yacy/search/StorageQueueEntry.java
deleted file mode 100644
index d623a45c4..000000000
--- a/source/net/yacy/search/StorageQueueEntry.java
+++ /dev/null
@@ -1,35 +0,0 @@
-/**
- * StorageQueueEntry
- * Copyright 2011 by Michael Peter Christen, [email protected], Frankfurt am Main, Germany
- * First released 30.05.2013 at http://yacy.net
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program in the file lgpl21.txt
- * If not, see <http://www.gnu.org/licenses/>.
- */
-
-package net.yacy.search;
-
-import org.apache.solr.common.SolrInputDocument;
-
-import net.yacy.kelondro.workflow.WorkflowJob;
-
-public class StorageQueueEntry extends WorkflowJob {
-
- public SolrInputDocument queueEntry;
-
- public StorageQueueEntry(final SolrInputDocument queueEntry) {
- super();
- this.queueEntry = queueEntry;
- }
-}
diff --git a/source/net/yacy/server/serverSwitchAbstractAction.java b/source/net/yacy/server/serverSwitchAbstractAction.java
deleted file mode 100644
index 06881f5ff..000000000
--- a/source/net/yacy/server/serverSwitchAbstractAction.java
+++ /dev/null
@@ -1,52 +0,0 @@
-// serverSwitchAbstractAction.java
-// -------------------------------------
-// (C) by Michael Peter Christen; [email protected]
-// first published on http://www.anomic.de
-// Frankfurt, Germany, 2005
-// last major change: 11.05.2005
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2 of the License, or
-// (at your option) any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
-package net.yacy.server;
-
-import net.yacy.cora.util.ConcurrentLog;
-
-public abstract class serverSwitchAbstractAction {
-
- protected ConcurrentLog log = null;
- private String shortDescr = "", longDescr = "";
-
- public void setDescription(final String shortText, final String longText) {
- // sets a visible description string
- this.shortDescr = shortText;
- this.longDescr = longText;
- }
-
- public String getShortDescription() {
- // returns short description string for online display
- return this.shortDescr;
- }
-
- public String getLongDescription() {
- // returns long description string for online display
- return this.longDescr;
- }
-
- public void setLog(final ConcurrentLog log) {
- // defines a log where process states can be written to
- this.log = log;
- }
-
-}