diff --git a/common/eda_dde.cpp b/common/eda_dde.cpp index d75a3b9482..f15182bc35 100644 --- a/common/eda_dde.cpp +++ b/common/eda_dde.cpp @@ -25,7 +25,6 @@ #include #include #include -#include #include #include @@ -33,8 +32,6 @@ #include -using namespace std::chrono_literals; - static const wxString HOSTNAME( wxT( "localhost" ) ); // buffer for read and write data in socket connections @@ -197,7 +194,6 @@ private: return; wxSocketClient* sock_client; - bool success = false; wxIPV4address addr; // Create a connexion @@ -260,7 +256,6 @@ private: if( sock_client->Ok() && sock_client->IsConnected() ) { - success = true; sock_client->SetFlags( wxSOCKET_NOWAIT /*wxSOCKET_WAITALL*/ ); sock_client->Write( m_message.second.c_str(), m_message.second.length() ); } @@ -273,14 +268,10 @@ private: } std::pair m_message; - - bool m_messageReady; - - mutable std::mutex m_mutex; - - std::condition_variable m_cv; - - bool m_shutdown; + bool m_messageReady; + mutable std::mutex m_mutex; + std::condition_variable m_cv; + bool m_shutdown; };