Skip to content

Commit

Permalink
removed unnecessary fns from this pr
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Alfonsi <petealft@amazon.com>
  • Loading branch information
Peter Alfonsi committed Apr 11, 2024
1 parent 9c037e1 commit c0b3dd2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,6 @@ static class MDCSDimensionNode {
this.stats = stats;
}

MDCSDimensionNode(String dimensionValue, boolean createChildrenMap) {
this(dimensionValue, createChildrenMap, null);
}

Map<String, MDCSDimensionNode> getChildren() {
return children;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,7 @@ private void getCacheStatsHelper(DimensionNode currentNodeInOriginalTree, MDCSDi
private MDCSDimensionNode createMatchingMDCSDimensionNode(DimensionNode node) {
CacheStatsCounterSnapshot nodeSnapshot = node.getStatsSnapshot();
boolean isLeafNode = node.getChildren().isEmpty();
MDCSDimensionNode newNode = new MDCSDimensionNode(node.getDimensionValue(), !isLeafNode, nodeSnapshot);
return newNode;
return new MDCSDimensionNode(node.getDimensionValue(), !isLeafNode, nodeSnapshot);
}

public void removeDimensions(List<String> dimensionValues) {
Expand Down

0 comments on commit c0b3dd2

Please sign in to comment.