bridge: remove deprecated services check (#34463)

Remove deprecated services check from get_services
pull/34469/head
Dean Lee 3 months ago committed by GitHub
parent 770c59eb4e
commit 26cedc5ff1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      cereal/messaging/bridge.cc

@ -6,12 +6,12 @@
ExitHandler do_exit; ExitHandler do_exit;
static std::vector<std::string> get_services(std::string whitelist_str, bool zmq_to_msgq) { static std::vector<std::string> get_services(const std::string &whitelist_str, bool zmq_to_msgq) {
std::vector<std::string> service_list; std::vector<std::string> service_list;
for (const auto& it : services) { for (const auto& it : services) {
std::string name = it.second.name; std::string name = it.second.name;
bool in_whitelist = whitelist_str.find(name) != std::string::npos; bool in_whitelist = whitelist_str.find(name) != std::string::npos;
if (name == "plusFrame" || name == "uiLayoutState" || (zmq_to_msgq && !in_whitelist)) { if (zmq_to_msgq && !in_whitelist) {
continue; continue;
} }
service_list.push_back(name); service_list.push_back(name);

Loading…
Cancel
Save