remove more iostream includes (#65)

This commit is contained in:
Dimon4eg 2019-05-11 21:27:58 +03:00 committed by Benjamin Sergeant
parent 2dc1547bbd
commit abfadad2e9
4 changed files with 0 additions and 25 deletions

View File

@ -20,8 +20,6 @@
#include <unistd.h>
#include <stdint.h>
#include <iostream>
#include <errno.h>
#define socketerrno errno

View File

@ -10,7 +10,6 @@
#include "IXSocketConnect.h"
#include <cassert>
#include <iostream>
#include <openssl/x509v3.h>

View File

@ -7,8 +7,6 @@
#include "IXUrlParser.h"
#include "LUrlParser.h"
#include <iostream>
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;
}
}

View File

@ -19,7 +19,5 @@ namespace ix
std::string& path,
std::string& query,
int& port);
static void printUrl(const std::string& url);
};
}