From d11d631648fcf239439a683a963d520771622f4b Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Tue, 14 Jun 2022 13:39:53 +0200 Subject: GC unused code --- .../src/main/java/com/yahoo/prelude/Pong.java | 37 ---------------------- 1 file changed, 37 deletions(-) diff --git a/container-search/src/main/java/com/yahoo/prelude/Pong.java b/container-search/src/main/java/com/yahoo/prelude/Pong.java index b6deee61b81..ecd6e302ccc 100644 --- a/container-search/src/main/java/com/yahoo/prelude/Pong.java +++ b/container-search/src/main/java/com/yahoo/prelude/Pong.java @@ -42,22 +42,6 @@ public class Pong { this.error = error; } - /** - * @deprecated do not use. Additional errors are ignored. - */ - @Deprecated - public void addError(ErrorMessage error) { } - - /** - * @deprecated use error() instead - */ - @Deprecated - public ErrorMessage getError(int i) { - if (i > 1) throw new IllegalArgumentException("No error at position " + i); - if (i == 0 && error.isEmpty()) throw new IllegalArgumentException("No error at position " + i); - return error.get(); - } - public Optional error() { return error; } /** Returns the number of active documents in the backend responding in this Pong, if available */ @@ -66,27 +50,6 @@ public class Pong { /** Returns true if the pinged node is currently blocking write operations due to being full */ public boolean isBlockingWrites() { return isBlockingWrites; } - /** - * Returns Optional.empty() - * - * @return empty - * @deprecated do not use. There is always one pong per node. - */ - @Deprecated - public Optional activeNodes() { - return Optional.empty(); - } - - /** - * Returns a list containing 0 or 1 errors - * - * @deprecated use error() instead - */ - @Deprecated - public List getErrors() { - return error.stream().collect(Collectors.toList()); - } - /** Returns whether there is an error or not */ public boolean badResponse() { return error.isPresent(); } -- cgit v1.2.3