summaryrefslogtreecommitdiffstats
path: root/vespa-http-client
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@oath.com>2019-01-16 23:07:43 +0100
committerJon Bratseth <bratseth@oath.com>2019-01-16 23:07:43 +0100
commit3c43378ab405ccd0f1365a8365f983a77ba473ae (patch)
tree1153b45127e92a3cada9e4063cd669ccb64e3596 /vespa-http-client
parent23bbba389056c7811a4c9812b0ba9341bb85795c (diff)
Remove dead code
Diffstat (limited to 'vespa-http-client')
-rw-r--r--vespa-http-client/src/main/java/com/yahoo/vespa/http/client/SyncFeedClient.java18
1 files changed, 0 insertions, 18 deletions
diff --git a/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/SyncFeedClient.java b/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/SyncFeedClient.java
index 3851fdb40fe..c2d237d63af 100644
--- a/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/SyncFeedClient.java
+++ b/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/SyncFeedClient.java
@@ -8,7 +8,6 @@ import java.util.ArrayList;
import java.util.ConcurrentModificationException;
import java.util.LinkedHashMap;
import java.util.List;
-import java.util.Map;
import java.util.Objects;
import java.util.concurrent.ThreadLocalRandom;
@@ -124,23 +123,6 @@ public class SyncFeedClient implements AutoCloseable {
*/
private LinkedHashMap<String, Result> results = null;
- void resetExpectedResults() {
- synchronized (monitor) {
- if (results != null)
- throw new ConcurrentModificationException("A SyncFeedClient instance is used by multiple threads");
-
- resultsReceived = 0;
- exception = null;
- results = new LinkedHashMap<>();
- }
- }
-
- void addExpectationOfResultFor(String operationId) {
- synchronized (monitor) {
- results.put(operationId, null);
- }
- }
-
void expectResultsOf(List<SyncOperation> operations) {
synchronized (monitor) {
if (results != null)