From: Marco Costalba Date: Sun, 14 Sep 2014 08:06:36 +0000 (+0200) Subject: Retire struct Log X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=ff480bdb83f5a21de2d4688fd2c6d4bed4bbceaa Retire struct Log No more used now that we have removed "Write Search Log" UCI option. No functional change. --- 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(); }