diff options
author | Valerij Fredriksen <valerijf@verizonmedia.com> | 2019-06-06 16:18:32 +0200 |
---|---|---|
committer | Valerij Fredriksen <valerijf@verizonmedia.com> | 2019-06-06 16:18:32 +0200 |
commit | 743300341c18a8d80cbc779272a0b78be1c72c43 (patch) | |
tree | ed7958bb7fd83ffd995fe0127fee7812b8bad1cc /node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/configserver/noderepository/NodeAttributes.java | |
parent | 798842b3766fd51323c43182573f13487e51eb43 (diff) |
Remove unused fields
Diffstat (limited to 'node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/configserver/noderepository/NodeAttributes.java')
-rw-r--r-- | node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/configserver/noderepository/NodeAttributes.java | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/configserver/noderepository/NodeAttributes.java b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/configserver/noderepository/NodeAttributes.java index 4770b3a3226..5317aa74737 100644 --- a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/configserver/noderepository/NodeAttributes.java +++ b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/configserver/noderepository/NodeAttributes.java @@ -28,7 +28,6 @@ public class NodeAttributes { private Optional<Version> vespaVersion = Optional.empty(); private Optional<Version> currentOsVersion = Optional.empty(); private Optional<Instant> currentFirmwareCheck = Optional.empty(); - private Optional<String> hardwareFailureDescription = Optional.empty(); private Optional<Boolean> wantToDeprovision = Optional.empty(); /** The list of reports to patch. A null value is used to remove the report. */ private Map<String, JsonNode> reports = new TreeMap<>(); @@ -69,10 +68,6 @@ public class NodeAttributes { return this; } - public NodeAttributes withHardwareFailureDescription(String hardwareFailureDescription) { - this.hardwareFailureDescription = Optional.of(hardwareFailureDescription); - return this; - } public NodeAttributes withWantToDeprovision(boolean wantToDeprovision) { this.wantToDeprovision = Optional.of(wantToDeprovision); @@ -118,10 +113,6 @@ public class NodeAttributes { return currentFirmwareCheck; } - public Optional<String> getHardwareFailureDescription() { - return hardwareFailureDescription; - } - public Optional<Boolean> getWantToDeprovision() { return wantToDeprovision; } @@ -133,7 +124,7 @@ public class NodeAttributes { @Override public int hashCode() { return Objects.hash(restartGeneration, rebootGeneration, dockerImage, vespaVersion, currentOsVersion, - currentFirmwareCheck, hardwareFailureDescription, wantToDeprovision, reports); + currentFirmwareCheck, wantToDeprovision, reports); } public boolean isEmpty() { @@ -153,7 +144,6 @@ public class NodeAttributes { && Objects.equals(vespaVersion, other.vespaVersion) && Objects.equals(currentOsVersion, other.currentOsVersion) && Objects.equals(currentFirmwareCheck, other.currentFirmwareCheck) - && Objects.equals(hardwareFailureDescription, other.hardwareFailureDescription) && Objects.equals(reports, other.reports) && Objects.equals(wantToDeprovision, other.wantToDeprovision); } @@ -167,7 +157,6 @@ public class NodeAttributes { vespaVersion.map(ver -> "vespaVersion=" + ver.toFullString()), currentOsVersion.map(ver -> "currentOsVersion=" + ver.toFullString()), currentFirmwareCheck.map(at -> "currentFirmwareCheck=" + at), - hardwareFailureDescription.map(hwDesc -> "hardwareFailureDescription=" + hwDesc), Optional.ofNullable(reports.isEmpty() ? null : "reports=" + reports), wantToDeprovision.map(depr -> "wantToDeprovision=" + depr)) .filter(Optional::isPresent) |