]> git.sesse.net Git - stockfish/commitdiff
Retire struct Log
authorMarco Costalba <mcostalba@gmail.com>
Sun, 14 Sep 2014 08:06:36 +0000 (10:06 +0200)
committerJoona Kiiski <joona.kiiski@gmail.com>
Tue, 16 Sep 2014 20:13:50 +0000 (21:13 +0100)
No more used now that we have removed
"Write Search Log" UCI option.

No functional change.

src/misc.cpp
src/misc.h

index b5a14dbed2a24bf7b8b0f5111da54db50f0ddd04..4d0628227683e9822c9e7d03ccc8af7905e37d03 100644 (file)
@@ -17,6 +17,7 @@
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
+#include <fstream>
 #include <iomanip>
 #include <iostream>
 #include <sstream>
 #include <iomanip>
 #include <iostream>
 #include <sstream>
index 92bde8f00618f9a70b7871dd958c69b759182693..970f335d1b74f5f2bad89fe782a6479ab26b69d3 100644 (file)
@@ -20,7 +20,7 @@
 #ifndef MISC_H_INCLUDED
 #define MISC_H_INCLUDED
 
 #ifndef MISC_H_INCLUDED
 #define MISC_H_INCLUDED
 
-#include <fstream>
+#include <ostream>
 #include <string>
 #include <vector>
 
 #include <string>
 #include <vector>
 
@@ -37,12 +37,6 @@ extern void dbg_mean_of(int v);
 extern void dbg_print();
 
 
 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(); }
 namespace Time {
   typedef int64_t point;
   inline point now() { return system_time_to_msec(); }