Skip to content

Commit ff480bd

Browse files
mcostalbazamar
authored andcommitted
Retire struct Log
No more used now that we have removed "Write Search Log" UCI option. No functional change.
1 parent b66552f commit ff480bd

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

src/misc.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
along with this program. If not, see <http://www.gnu.org/licenses/>.
1818
*/
1919

20+
#include <fstream>
2021
#include <iomanip>
2122
#include <iostream>
2223
#include <sstream>

src/misc.h

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#ifndef MISC_H_INCLUDED
2121
#define MISC_H_INCLUDED
2222

23-
#include <fstream>
23+
#include <ostream>
2424
#include <string>
2525
#include <vector>
2626

@@ -37,12 +37,6 @@ extern void dbg_mean_of(int v);
3737
extern void dbg_print();
3838

3939

40-
struct Log : public std::ofstream {
41-
Log(const std::string& f = "log.txt") : std::ofstream(f.c_str(), std::ios::out | std::ios::app) {}
42-
~Log() { if (is_open()) close(); }
43-
};
44-
45-
4640
namespace Time {
4741
typedef int64_t point;
4842
inline point now() { return system_time_to_msec(); }

0 commit comments

Comments
 (0)