Pārlūkot izejas kodu

Cleanup code a little bit

Sam Jaffe 6 gadi atpakaļ
vecāks
revīzija
4245077717
2 mainītis faili ar 1 papildinājumiem un 8 dzēšanām
  1. 0 7
      src/common.cxx
  2. 1 1
      src/format.cxx

+ 0 - 7
src/common.cxx

@@ -34,13 +34,6 @@ timeval logging::now() {
   return tv;
 }
 
-std::string logging::timestamp() {
-  time_t round = std::time(NULL);
-  char buf[32];
-  std::strftime(buf, sizeof(buf), "%Y%m%dT%H%M%S", std::localtime(&round));
-  return buf;
-}
-
 namespace logging {
   std::ostream & operator<<(std::ostream & os, log_level l) {
     return os << std::string(level_header(l));

+ 1 - 1
src/format.cxx

@@ -49,7 +49,7 @@ namespace logging {
   }
 
   string_generator string_token(std::string str) {
-    return [=]( logpacket const & ){
+    return [=](logpacket const &){
       return str;
     };
   }