From 6de426a574a74a349e7739b5fa969c20022e3898 Mon Sep 17 00:00:00 2001 From: Benjamin Sergeant Date: Mon, 14 Oct 2019 11:15:14 -0700 Subject: [PATCH] remove unused code in ws cobra_publish --- ws/ws_cobra_publish.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ws/ws_cobra_publish.cpp b/ws/ws_cobra_publish.cpp index 769f0160..a5ad1dff 100644 --- a/ws/ws_cobra_publish.cpp +++ b/ws/ws_cobra_publish.cpp @@ -6,7 +6,6 @@ #include #include -#include #include #include #include @@ -44,9 +43,8 @@ namespace ix // Display incoming messages std::atomic authenticated(false); std::atomic messageAcked(false); - std::condition_variable condition; - conn.setEventCallback([&conn, &channel, &data, &authenticated, &messageAcked, &condition]( + conn.setEventCallback([&conn, &channel, &data, &authenticated, &messageAcked]( ix::CobraConnectionEventType eventType, const std::string& errMsg, const ix::WebSocketHttpHeaders& headers, @@ -83,13 +81,11 @@ namespace ix else if (eventType == ix::CobraConnection_EventType_Error) { spdlog::error("Publisher: error {}", errMsg); - condition.notify_one(); } else if (eventType == ix::CobraConnection_EventType_Published) { spdlog::info("Published message id {} acked", msgId); messageAcked = true; - condition.notify_one(); } });