From 336425912acd2ae46bf0ece136e8a172d247cb3c Mon Sep 17 00:00:00 2001 From: reger Date: Thu, 10 Jul 2014 02:14:03 +0200 Subject: [PATCH] remove unused localSearchThread from SearchEvent --- source/net/yacy/search/query/SearchEvent.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/source/net/yacy/search/query/SearchEvent.java b/source/net/yacy/search/query/SearchEvent.java index 137f7050c..0be3a2e7a 100644 --- a/source/net/yacy/search/query/SearchEvent.java +++ b/source/net/yacy/search/query/SearchEvent.java @@ -130,7 +130,6 @@ public final class SearchEvent { public final List nodeSearchThreads; public Thread[] secondarySearchThreads; public final SortedMap preselectedPeerHashes; - private final Thread localSearchThread; private final SortedMap IACount; private final SortedMap IAResults; private final SortedMap heuristics; @@ -249,7 +248,6 @@ public final class SearchEvent { this.heuristics = new TreeMap(Base64Order.enhancedCoder); this.IAmaxcounthash = null; this.IAneardhthash = null; - this.localSearchThread = null; this.remote = (peers != null && peers.sizeConnected() > 0) && (this.query.domType == QueryParams.Searchdom.CLUSTER || (this.query.domType == QueryParams.Searchdom.GLOBAL && Switchboard.getSwitchboard().getConfigBool(SwitchboardConstants.INDEX_RECEIVE_ALLOW_SEARCH, false))); this.local_rwi_available = new AtomicInteger(0); // the number of results in the local peer after filtering this.local_rwi_stored = new AtomicInteger(0); @@ -650,7 +648,6 @@ public final class SearchEvent { // clear all data structures if (this.preselectedPeerHashes != null) this.preselectedPeerHashes.clear(); - if (this.localSearchThread != null && this.localSearchThread.isAlive()) this.localSearchThread.interrupt(); if (this.IACount != null) this.IACount.clear(); if (this.IAResults != null) this.IAResults.clear(); if (this.heuristics != null) this.heuristics.clear();