From 80f2aa2b675d64ba89bd804be2b90dd293405f68 Mon Sep 17 00:00:00 2001 From: Takatoshi Kondo Date: Tue, 22 Dec 2015 14:21:00 +0900 Subject: [PATCH] Removed a redundant #if check. --- include/mqtt/client.hpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/include/mqtt/client.hpp b/include/mqtt/client.hpp index 64faaba04..e6a859613 100644 --- a/include/mqtt/client.hpp +++ b/include/mqtt/client.hpp @@ -301,11 +301,7 @@ class client { as::ip::tcp::resolver r(ios_); as::ip::tcp::resolver::query q(host_, port_); auto it = r.resolve(q); -#if defined(MQTT_NO_TLS) - socket_.reset(new Socket(ios_)); -#else // defined(MQTT_NO_TLS) setup_socket(socket_); -#endif // defined(MQTT_NO_TLS) as::async_connect( socket_->lowest_layer(), it, [this]