summaryrefslogtreecommitdiffstats
path: root/controller-server
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@yahoo-inc.com>2017-10-10 16:46:17 +0200
committerJon Bratseth <bratseth@yahoo-inc.com>2017-10-10 16:46:17 +0200
commit00dc35bf1f378d6f6086708db013501abe6fcaa6 (patch)
treedb0949d86e11074998613ab89e163fe962cbe17d /controller-server
parenta14bbb996d52d26afbef18f5bd0bcdbdf4f1eac4 (diff)
Remove dead code
Diffstat (limited to 'controller-server')
-rw-r--r--controller-server/src/main/java/com/yahoo/vespa/hosted/controller/application/JobStatus.java12
1 files changed, 0 insertions, 12 deletions
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/application/JobStatus.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/application/JobStatus.java
index cb5d62cda1b..1c8aa2adada 100644
--- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/application/JobStatus.java
+++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/application/JobStatus.java
@@ -111,18 +111,6 @@ public class JobStatus {
/** The error of the last completion, or empty if the last run succeeded */
public Optional<DeploymentJobs.JobError> jobError() { return jobError; }
- /** Returns true if job is in progress */
- // TODO: Replace with isRunning
- public boolean inProgress() {
- if (!lastTriggered().isPresent()) {
- return false;
- }
- if (!lastCompleted().isPresent()) {
- return true;
- }
- return lastTriggered().get().at().isAfter(lastCompleted().get().at());
- }
-
/**
* Returns the last triggering of this job, or empty if the controller has never triggered it
* and not seen a deployment for it