summaryrefslogtreecommitdiffstats
path: root/node-repository
diff options
context:
space:
mode:
authorHåkon Hallingstad <hakon@verizonmedia.com>2021-08-17 16:38:52 +0200
committerHåkon Hallingstad <hakon@verizonmedia.com>2021-08-17 16:38:52 +0200
commite0b97a5c542efb2f2eb28d89fde1b9161946a654 (patch)
tree76395d1184f8cbb8cd2e747b0a6cf878a74b60ff /node-repository
parent7757e3ae733e847e45afe2c971696379372734d8 (diff)
Remove unused method
Diffstat (limited to 'node-repository')
-rw-r--r--node-repository/src/main/java/com/yahoo/vespa/hosted/provision/maintenance/ExpeditedChangeApplicationMaintainer.java11
1 files changed, 0 insertions, 11 deletions
diff --git a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/maintenance/ExpeditedChangeApplicationMaintainer.java b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/maintenance/ExpeditedChangeApplicationMaintainer.java
index 57b726764ac..884d4ea7281 100644
--- a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/maintenance/ExpeditedChangeApplicationMaintainer.java
+++ b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/maintenance/ExpeditedChangeApplicationMaintainer.java
@@ -73,17 +73,6 @@ public class ExpeditedChangeApplicationMaintainer extends ApplicationMaintainer
" as an expedited change was made to its nodes");
}
- private boolean hasBeenReadied(ApplicationId applicationId, NodeList nodes) {
- Optional<Instant> lastDeployTime = deployer().lastDeployTime(applicationId);
- if (lastDeployTime.isEmpty()) return false;
-
- return nodes.stream()
- .flatMap(node -> node.history().events().stream())
- .filter(event -> event.type() == History.Event.Type.readied)
- .map(History.Event::at)
- .anyMatch(e -> lastDeployTime.get().isBefore(e));
- }
-
private boolean hasNodesWithChanges(ApplicationId applicationId, NodeList nodes) {
Optional<Instant> lastDeployTime = deployer().lastDeployTime(applicationId);
if (lastDeployTime.isEmpty()) return false;