summaryrefslogtreecommitdiff
path: root/src/log.cpp
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-02-22 07:51:26 +0000
committerChristian Pointner <equinox@anytun.org>2009-02-22 07:51:26 +0000
commit5850046cf4bf3146c7da097f9ff3dec01459b640 (patch)
tree112fc3503c379be693b7b4cf88adba102312e924 /src/log.cpp
parentreplaced regular throws with AnytunError::thowErr (diff)
moved LogErrno to AnytunErrno
Diffstat (limited to 'src/log.cpp')
-rw-r--r--src/log.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/log.cpp b/src/log.cpp
index f99ee78..aa2c68d 100644
--- a/src/log.cpp
+++ b/src/log.cpp
@@ -31,7 +31,6 @@
#include <iostream>
#include <string>
-#include <boost/system/system_error.hpp>
#include "log.h"
#include "threadUtils.hpp"
@@ -40,23 +39,6 @@ Log* Log::inst = NULL;
Mutex Log::instMutex;
Log& cLog = Log::instance();
-#ifndef NO_CRYPT
-#ifndef USE_SSL_CRYPTO
-std::ostream& operator<<(std::ostream& stream, LogGpgError const& value)
-{
- char buf[STERROR_TEXT_MAX];
- buf[0] = 0;
- gpg_strerror_r(value.err_, buf, STERROR_TEXT_MAX);
- return stream << buf;
-}
-#endif
-#endif
-std::ostream& operator<<(std::ostream& stream, LogErrno const& value)
-{
- boost::system::system_error err(boost::system::error_code(value.err_,boost::system::get_system_category()));
- return stream << err.what();
-}
-
LogStringBuilder::LogStringBuilder(LogStringBuilder const& src) : log(src.log), prio(src.prio)
{
stream << src.stream.str();