aboutsummaryrefslogtreecommitdiffstats
path: root/node-repository/src/main
diff options
context:
space:
mode:
authorMartin Polden <mpolden@mpolden.no>2024-05-30 12:55:11 +0200
committerMartin Polden <mpolden@mpolden.no>2024-05-30 12:55:11 +0200
commit108a2a274b6fad6123bc993bb56a34dc16941b9e (patch)
tree499313d2e98b258ef9043bbf0f6d8d2602d10ddb /node-repository/src/main
parent27ca44ed2a63af4a82df15a19981cfd00cc53bd5 (diff)
Remove unused method
Diffstat (limited to 'node-repository/src/main')
-rw-r--r--node-repository/src/main/java/com/yahoo/vespa/hosted/provision/autoscale/AllocatableResources.java13
1 files changed, 0 insertions, 13 deletions
diff --git a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/autoscale/AllocatableResources.java b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/autoscale/AllocatableResources.java
index 79e709e7bae..a348b4f9405 100644
--- a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/autoscale/AllocatableResources.java
+++ b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/autoscale/AllocatableResources.java
@@ -82,19 +82,6 @@ public class AllocatableResources {
this.fulfilment = fulfilment;
}
- /** Returns this with the redundant node or group removed from counts. */
- public AllocatableResources withoutRedundancy() {
- int groupSize = nodes / groups;
- int nodesAdjustedForRedundancy = nodes > 1 ? (groups == 1 ? nodes - 1 : nodes - groupSize) : nodes;
- int groupsAdjustedForRedundancy = nodes > 1 ? (groups == 1 ? 1 : groups - 1) : groups;
- return new AllocatableResources(nodesAdjustedForRedundancy,
- groupsAdjustedForRedundancy,
- realResources,
- advertisedResources,
- clusterSpec,
- fulfilment);
- }
-
/**
* Returns the resources which will actually be available per node in this cluster with this allocation.
* These should be used for reasoning about allocation to meet measured demand.