From ff480bdb83f5a21de2d4688fd2c6d4bed4bbceaa Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sun, 14 Sep 2014 10:06:36 +0200 Subject: [PATCH] Retire struct Log No more used now that we have removed "Write Search Log" UCI option. No functional change. --- src/misc.cpp | 1 + src/misc.h | 8 +------- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/misc.cpp b/src/misc.cpp index b5a14dbe..4d062822 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -17,6 +17,7 @@ along with this program. If not, see . */ +#include #include #include #include diff --git a/src/misc.h b/src/misc.h index 92bde8f0..970f335d 100644 --- a/src/misc.h +++ b/src/misc.h @@ -20,7 +20,7 @@ #ifndef MISC_H_INCLUDED #define MISC_H_INCLUDED -#include +#include #include #include @@ -37,12 +37,6 @@ extern void dbg_mean_of(int v); extern void dbg_print(); -struct Log : public std::ofstream { - Log(const std::string& f = "log.txt") : std::ofstream(f.c_str(), std::ios::out | std::ios::app) {} - ~Log() { if (is_open()) close(); } -}; - - namespace Time { typedef int64_t point; inline point now() { return system_time_to_msec(); } -- 2.39.2