Skip to content

Commit

Permalink
cluster-manager: remove unused internal function
Browse files Browse the repository at this point in the history
Signed-off-by: Adi Suissa-Peleg <adip@google.com>
  • Loading branch information
adisuissa committed Oct 23, 2024
1 parent 6030fdb commit 67f3855
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions source/common/upstream/cluster_manager_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,6 @@ void addOptionsIfNotNull(Network::Socket::OptionsSharedPtr& options,
}
}

// Helper function to make sure each protocol in expected_protocols is present
// in protocols (only used for an ASSERT in debug builds)
bool contains(const std::vector<Http::Protocol>& protocols,
const std::vector<Http::Protocol>& expected_protocols) {
for (auto protocol : expected_protocols) {
if (std::find(protocols.begin(), protocols.end(), protocol) == protocols.end()) {
return false;
}
}
return true;
}

absl::optional<Http::HttpServerPropertiesCache::Origin>
getOrigin(const Network::TransportSocketOptionsConstSharedPtr& options, HostConstSharedPtr host) {
std::string sni = std::string(host->transportSocketFactory().defaultServerNameIndication());
Expand Down

0 comments on commit 67f3855

Please sign in to comment.