]> git.cworth.org Git - apitrace/blobdiff - common/trace_file_zlib.cpp
cli: Rename replay -> retrace.
[apitrace] / common / trace_file_zlib.cpp
index 5e5d5deb9561acf4e33de20c99390cbbc2aa4708..c4eed33dd2df650d9f63826981999b3498a500ad 100644 (file)
@@ -157,19 +157,3 @@ int ZLibFile::rawPercentRead()
 File * File::createZLib(void) {
     return new ZLibFile;
 }
-
-bool File::isZLibCompressed(const std::string &filename)
-{
-    std::fstream stream(filename.c_str(),
-                        std::fstream::binary | std::fstream::in);
-    if (!stream.is_open())
-        return false;
-
-    unsigned char byte1, byte2;
-    stream >> byte1;
-    stream >> byte2;
-    stream.close();
-
-    return (byte1 == 0x1f && byte2 == 0x8b);
-}
-