Permalink
Browse files

remove to_hex from logging.hh

  • Loading branch information...
toffaletti committed Apr 22, 2012
1 parent c34c942 commit 379f9ed71e9483b6208417b797c59970e703e8f8
Showing with 0 additions and 16 deletions.
  1. +0 −16 include/ten/logging.hh
View
@@ -3,21 +3,5 @@
#include <glog/logging.h>
#include <glog/stl_logging.h>
-#include <sstream>
-
-namespace ten {
-
-//! hexify memory
-template <typename T> std::string to_hex(T &in) {
- static const char hexs[] = "0123456789ABCDEF";
- std::stringstream ss;
- for (typename T::const_iterator i = in.begin(); i!=in.end(); i++) {
- ss << hexs[(*i>>4) & 0xF];
- ss << hexs[*i & 0x0F];
- }
- return ss.str();
-}
-
-} // end namespace ten
#endif // LIBTEN_LOGGING_HH

0 comments on commit 379f9ed

Please sign in to comment.