From b119ff65be386b4d47da20b33a0e5091837aed60 Mon Sep 17 00:00:00 2001 From: reger Date: Tue, 14 Jun 2016 01:50:32 +0200 Subject: [PATCH] clean out not used Switchboard variables counter indexedPages, const xstackCrawlSlots --- source/net/yacy/search/Switchboard.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/source/net/yacy/search/Switchboard.java b/source/net/yacy/search/Switchboard.java index d0167afe6..174ba7d57 100644 --- a/source/net/yacy/search/Switchboard.java +++ b/source/net/yacy/search/Switchboard.java @@ -225,8 +225,6 @@ public final class Switchboard extends serverSwitch { public final static String SOLR_COLLECTION_CONFIGURATION_NAME = "solr.collection.schema"; public final static String SOLR_WEBGRAPH_CONFIGURATION_NAME = "solr.webgraph.schema"; - // load slots - public static int xstackCrawlSlots = 2000; public static long lastPPMUpdate = System.currentTimeMillis() - 30000; private static final int dhtMaxContainerCount = 500; private int dhtMaxReferenceCount = 1000; @@ -235,8 +233,6 @@ public final class Switchboard extends serverSwitch { public static SortedSet badwords = new TreeSet(NaturalOrder.naturalComparator); public static SortedSet stopwords = new TreeSet(NaturalOrder.naturalComparator); public static SortedSet blueList = null; -// public static HandleSet badwordHashes = null; // not used 2013-06-06 -// public static HandleSet blueListHashes = null; // not used 2013-06-06 public static SortedSet stopwordHashes = null; public static Blacklist urlBlacklist = null; @@ -271,7 +267,6 @@ public final class Switchboard extends serverSwitch { public BookmarksDB bookmarksDB; public WebStructureGraph webStructure; public ConcurrentHashMap> localSearchTracker, remoteSearchTracker; // mappings from requesting host to a TreeSet of Long(access time) - public long indexedPages = 0; public int searchQueriesRobinsonFromLocal = 0; // absolute counter of all local queries submitted on this peer from a local or autheticated used public int searchQueriesRobinsonFromRemote = 0; // absolute counter of all local queries submitted on this peer from a remote IP without authentication public float searchQueriesGlobal = 0f; // partial counter of remote queries (1/number-of-requested-peers) @@ -655,7 +650,6 @@ public final class Switchboard extends serverSwitch { } else { blueList = new TreeSet(); } - // blueListHashes = Word.words2hashesHandles(blueList); this.log.config("loaded blue-list from file " + plasmaBlueListFile.getName() + ", " @@ -680,7 +674,6 @@ public final class Switchboard extends serverSwitch { badwordsFile = new File(appPath, "defaults/" + SwitchboardConstants.LIST_BADWORDS_DEFAULT); } badwords = SetTools.loadList(badwordsFile, NaturalOrder.naturalComparator); -// badwordHashes = Word.words2hashesHandles(badwords); this.log.config("loaded badwords from file " + badwordsFile.getName() + ", " @@ -3044,9 +3037,6 @@ public final class Switchboard extends serverSwitch { processCase // process case ); - // increment number of indexed urls - this.indexedPages++; - // update profiling info if ( System.currentTimeMillis() - lastPPMUpdate > 20000 ) { // we don't want to do this too often