diff options
author | Harald Musum <musum@oath.com> | 2017-11-02 09:53:18 +0100 |
---|---|---|
committer | Harald Musum <musum@oath.com> | 2017-11-02 09:53:18 +0100 |
commit | fa66a459c40878e56e1cf8a895803683d809777b (patch) | |
tree | 3a7d19ec0ae259b86db8cf2bf00cdb2db9ac848a /config-model-api | |
parent | f42e4731d2ae872137fbd1f2684c083fc71608e6 (diff) |
Remove deprecated, unused method and default implementation from interface
Diffstat (limited to 'config-model-api')
-rw-r--r-- | config-model-api/src/main/java/com/yahoo/config/model/api/Model.java | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/config-model-api/src/main/java/com/yahoo/config/model/api/Model.java b/config-model-api/src/main/java/com/yahoo/config/model/api/Model.java index f8f749ef070..3fec8550623 100644 --- a/config-model-api/src/main/java/com/yahoo/config/model/api/Model.java +++ b/config-model-api/src/main/java/com/yahoo/config/model/api/Model.java @@ -7,7 +7,6 @@ import com.yahoo.vespa.config.ConfigPayload; import com.yahoo.vespa.config.buildergen.ConfigDefinition; import java.time.Instant; -import java.util.Optional; import java.util.Set; import java.util.Collection; @@ -57,21 +56,11 @@ public interface Model { default void reloadDeployFileDistributor(FileDistribution fileDistribution) { } /** - * Get the provisioning info for this model. + * Gets the allocated hosts for this model. * * @return {@link AllocatedHosts} instance, if available. - * @deprecated use allocatedHosts */ - @Deprecated - // TODO: Remove this (and the implementation below) when no version older than 6.143 is deployed anywhere - default Optional<AllocatedHosts> getProvisionInfo() { - return Optional.of(allocatedHosts()); - } - - @SuppressWarnings("deprecation") - default AllocatedHosts allocatedHosts() { - return getProvisionInfo().get(); - } + AllocatedHosts allocatedHosts(); /** * Returns whether this application allows serving config request for a different version. |