]> git.cworth.org Git - apitrace/blobdiff - common/trace_file.cpp
Cleanup and comment the code.
[apitrace] / common / trace_file.cpp
index 5328cbe9c2355fc9ab9452e726f9772bf6d33da0..3657fd2943088012fa4c69abc790bb753a151f8e 100644 (file)
 #include "trace_file.hpp"
 
 #include <assert.h>
-#include <string.h>
 
-#include <zlib.h>
-#include <gzguts.h>
-
-#include "os.hpp"
-
-#include <iostream>
 
 using namespace trace;
 
@@ -51,7 +44,8 @@ File::File(const std::string &filename,
 
 File::~File()
 {
-    close();
+    // We can't invoke any overriden virtual method here anymore
+    assert(!m_isOpened);
 }