Skip to content

Commit c0b3dd2

Browse files
author
Peter Alfonsi
committed
removed unnecessary fns from this pr
Signed-off-by: Peter Alfonsi <petealft@amazon.com>
1 parent 9c037e1 commit c0b3dd2

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

server/src/main/java/org/opensearch/common/cache/stats/MultiDimensionCacheStats.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,6 @@ static class MDCSDimensionNode {
9191
this.stats = stats;
9292
}
9393

94-
MDCSDimensionNode(String dimensionValue, boolean createChildrenMap) {
95-
this(dimensionValue, createChildrenMap, null);
96-
}
97-
9894
Map<String, MDCSDimensionNode> getChildren() {
9995
return children;
10096
}

server/src/main/java/org/opensearch/common/cache/stats/StatsHolder.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,7 @@ private void getCacheStatsHelper(DimensionNode currentNodeInOriginalTree, MDCSDi
176176
private MDCSDimensionNode createMatchingMDCSDimensionNode(DimensionNode node) {
177177
CacheStatsCounterSnapshot nodeSnapshot = node.getStatsSnapshot();
178178
boolean isLeafNode = node.getChildren().isEmpty();
179-
MDCSDimensionNode newNode = new MDCSDimensionNode(node.getDimensionValue(), !isLeafNode, nodeSnapshot);
180-
return newNode;
179+
return new MDCSDimensionNode(node.getDimensionValue(), !isLeafNode, nodeSnapshot);
181180
}
182181

183182
public void removeDimensions(List<String> dimensionValues) {

0 commit comments

Comments
 (0)