Skip to content

Commit

Permalink
Remove unused getter/setter for reachability group list size
Browse files Browse the repository at this point in the history
Summary: As titled. No longer used

Reviewed By: shri-khare

Differential Revision: D66030217

fbshipit-source-id: e8ba52816c8fb395acda6da68ed21e8c6ba9c5ff
  • Loading branch information
Ron He authored and facebook-github-bot committed Nov 22, 2024
1 parent 8df9624 commit 5ad8e68
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions fboss/agent/state/SwitchSettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -565,24 +565,6 @@ class SwitchSettings
}
}

std::optional<int32_t> getReachabilityGroupListSize() const {
if (auto reachabilityGroupListSize =
cref<switch_state_tags::reachabilityGroupListSize_DEPRECATED>()) {
return reachabilityGroupListSize->toThrift();
}
return std::nullopt;
}

void setReachabilityGroupListSize(
std::optional<int32_t> reachabilityGroupListSize) {
if (!reachabilityGroupListSize) {
ref<switch_state_tags::reachabilityGroupListSize_DEPRECATED>().reset();
} else {
set<switch_state_tags::reachabilityGroupListSize_DEPRECATED>(
*reachabilityGroupListSize);
}
}

std::optional<uint8_t> getSramGlobalFreePercentXoffThreshold() const {
if (auto sramGlobalFreePercentXoffTh =
cref<switch_state_tags::sramGlobalFreePercentXoffThreshold>()) {
Expand Down

0 comments on commit 5ad8e68

Please sign in to comment.