summaryrefslogtreecommitdiffstats
path: root/container-search
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-06-14 13:39:53 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2022-06-14 13:39:53 +0200
commitd11d631648fcf239439a683a963d520771622f4b (patch)
tree9e5ae696defe9db392678e9e781d51980115098b /container-search
parent48d5dde7e5c7b3b17ef2a31e5075de7031f8cf05 (diff)
GC unused code
Diffstat (limited to 'container-search')
-rw-r--r--container-search/src/main/java/com/yahoo/prelude/Pong.java37
1 files changed, 0 insertions, 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<ErrorMessage> 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<Integer> activeNodes() {
- return Optional.empty();
- }
-
- /**
- * Returns a list containing 0 or 1 errors
- *
- * @deprecated use error() instead
- */
- @Deprecated
- public List<ErrorMessage> getErrors() {
- return error.stream().collect(Collectors.toList());
- }
-
/** Returns whether there is an error or not */
public boolean badResponse() { return error.isPresent(); }