diff options
-rw-r--r-- | vespa-http-client/src/main/java/com/yahoo/vespa/http/client/SyncFeedClient.java | 18 |
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) |