Browse Source

Remove unneeded dependencies on boost::system

cl-refactor
Paweł Bylica 8 years ago
parent
commit
d5d582be65
No known key found for this signature in database GPG Key ID: 7A0C037434FE77EF
  1. 6
      libdevcore/Log.cpp
  2. 1
      libdevcore/Log.h
  3. 2
      libethcore/EthashAux.cpp

6
libdevcore/Log.cpp

@ -27,7 +27,6 @@
#ifdef __APPLE__
#include <pthread.h>
#endif
#include <boost/asio/ip/tcp.hpp>
#include "Guards.h"
using namespace std;
using namespace dev;
@ -96,11 +95,6 @@ LogOutputStreamBase::LogOutputStreamBase(char const* _id, std::type_info const*
}
}
void LogOutputStreamBase::append(boost::asio::ip::basic_endpoint<boost::asio::ip::tcp> const& _t)
{
m_sstr << EthNavyUnder "tcp://" << _t << EthReset;
}
/// Associate a name with each thread for nice logging.
struct ThreadLocalLogName
{

1
libdevcore/Log.h

@ -131,7 +131,6 @@ public:
void append(std::string const& _t) { m_sstr << EthGreen "\"" + _t + "\"" EthReset; }
void append(bytes const& _t) { m_sstr << EthYellow "%" << toHex(_t) << EthReset; }
void append(bytesConstRef _t) { m_sstr << EthYellow "%" << toHex(_t) << EthReset; }
void append(boost::asio::ip::basic_endpoint<boost::asio::ip::tcp> const& _t);
template <class T> void append(std::vector<T> const& _t)
{
m_sstr << EthWhite "[" EthReset;

2
libethcore/EthashAux.cpp

@ -22,7 +22,6 @@
#include "EthashAux.h"
#include <boost/detail/endian.hpp>
#include <boost/filesystem.hpp>
#include <chrono>
#include <array>
#include <thread>
@ -38,7 +37,6 @@ using namespace std;
using namespace chrono;
using namespace dev;
using namespace eth;
using namespace boost::filesystem;
const char* DAGChannel::name() { return EthGreen "DAG"; }

Loading…
Cancel
Save