Skip to content

Commit

Permalink
Retire struct Log
Browse files Browse the repository at this point in the history
No more used now that we have removed
"Write Search Log" UCI option.

No functional change.
  • Loading branch information
mcostalba authored and zamar committed Sep 16, 2014
1 parent b66552f commit ff480bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
1 change: 1 addition & 0 deletions src/misc.cpp
Expand Up @@ -17,6 +17,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include <fstream>
#include <iomanip>
#include <iostream>
#include <sstream>
Expand Down
8 changes: 1 addition & 7 deletions src/misc.h
Expand Up @@ -20,7 +20,7 @@
#ifndef MISC_H_INCLUDED
#define MISC_H_INCLUDED

#include <fstream>
#include <ostream>
#include <string>
#include <vector>

Expand All @@ -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(); }
Expand Down

0 comments on commit ff480bd

Please sign in to comment.