diff options
author | Martin Polden <mpolden@mpolden.no> | 2018-04-05 15:05:37 +0200 |
---|---|---|
committer | Martin Polden <mpolden@mpolden.no> | 2018-04-06 09:18:47 +0200 |
commit | d928b4523392554fd6fdc1619cb38fdd1fcbe1af (patch) | |
tree | 9549b3aa538354f5fdc9d1d0b1a548a8913e4572 /controller-api | |
parent | af0f1a92e8f74a6de63dd9c95f23147e7a476df1 (diff) |
Remove unused RotationId
Diffstat (limited to 'controller-api')
2 files changed, 0 insertions, 24 deletions
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/identifiers/RotationId.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/identifiers/RotationId.java deleted file mode 100644 index 2eeb0f60748..00000000000 --- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/identifiers/RotationId.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -package com.yahoo.vespa.hosted.controller.api.identifiers; - -/** - * @author smorgrav - */ -// TODO: Used in serialization (ConfigServerClient). Remove when no longer used by ControllerDb and ConfigServerClient -public class RotationId extends Identifier { - - public RotationId(String id) { - super(id); - } - - @Override - public void validate() { - super.validate(); - validateSerialized(); - } -} diff --git a/controller-api/src/test/java/com/yahoo/vespa/hosted/controller/api/identifiers/IdentifierTest.java b/controller-api/src/test/java/com/yahoo/vespa/hosted/controller/api/identifiers/IdentifierTest.java index 92b8a18b9f5..a01e7c22d35 100644 --- a/controller-api/src/test/java/com/yahoo/vespa/hosted/controller/api/identifiers/IdentifierTest.java +++ b/controller-api/src/test/java/com/yahoo/vespa/hosted/controller/api/identifiers/IdentifierTest.java @@ -107,11 +107,6 @@ public class IdentifierTest { } @Test - public void rotation_id_may_contain_dot() { - new RotationId("rotation.id.with.dot"); - } - - @Test public void user_tenant_id_does_not_contain_underscore() { assertEquals("by-under-score-user", new UserId("under_score_user").toTenantId().id()); } |