From abfadad2e98388cf2eb33d4cdf485b2aacf6fb41 Mon Sep 17 00:00:00 2001 From: Dimon4eg Date: Sat, 11 May 2019 21:27:58 +0300 Subject: [PATCH] remove more iostream includes (#65) --- ixwebsocket/IXSocketAppleSSL.cpp | 2 -- ixwebsocket/IXSocketOpenSSL.cpp | 1 - ixwebsocket/IXUrlParser.cpp | 20 -------------------- ixwebsocket/IXUrlParser.h | 2 -- 4 files changed, 25 deletions(-) diff --git a/ixwebsocket/IXSocketAppleSSL.cpp b/ixwebsocket/IXSocketAppleSSL.cpp index c0a934ff..1f6d73db 100644 --- a/ixwebsocket/IXSocketAppleSSL.cpp +++ b/ixwebsocket/IXSocketAppleSSL.cpp @@ -20,8 +20,6 @@ #include #include -#include - #include #define socketerrno errno diff --git a/ixwebsocket/IXSocketOpenSSL.cpp b/ixwebsocket/IXSocketOpenSSL.cpp index 3a5bbc5d..5cc8f3e2 100644 --- a/ixwebsocket/IXSocketOpenSSL.cpp +++ b/ixwebsocket/IXSocketOpenSSL.cpp @@ -10,7 +10,6 @@ #include "IXSocketConnect.h" #include -#include #include diff --git a/ixwebsocket/IXUrlParser.cpp b/ixwebsocket/IXUrlParser.cpp index f9722a1b..6ae12a53 100644 --- a/ixwebsocket/IXUrlParser.cpp +++ b/ixwebsocket/IXUrlParser.cpp @@ -7,8 +7,6 @@ #include "IXUrlParser.h" #include "LUrlParser.h" -#include - namespace ix { bool UrlParser::parse(const std::string& url, @@ -66,22 +64,4 @@ namespace ix return true; } - void UrlParser::printUrl(const std::string& url) - { - std::string protocol, host, path, query; - int port {0}; - - if (!parse(url, protocol, host, path, query, port)) - { - return; - } - - std::cout << "[" << url << "]" << std::endl; - std::cout << protocol << std::endl; - std::cout << host << std::endl; - std::cout << port << std::endl; - std::cout << path << std::endl; - std::cout << query << std::endl; - std::cout << "-------------------------------" << std::endl; - } } diff --git a/ixwebsocket/IXUrlParser.h b/ixwebsocket/IXUrlParser.h index 9215f088..3ec190c3 100644 --- a/ixwebsocket/IXUrlParser.h +++ b/ixwebsocket/IXUrlParser.h @@ -19,7 +19,5 @@ namespace ix std::string& path, std::string& query, int& port); - - static void printUrl(const std::string& url); }; }