From a98025c65263614e22196e82f41b86ee3194dd36 Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Tue, 27 Feb 2024 10:17:23 +0100 Subject: [PATCH] remove unused FileKax.* It's included in mkvtoolnix but not used. --- CMakeLists.txt | 2 -- matroska/FileKax.h | 42 ------------------------------------------ src/FileKax.cpp | 37 ------------------------------------- test/mux/test6.cpp | 1 - test/mux/test8.cpp | 6 ------ test/tags/test9.cpp | 1 - 6 files changed, 89 deletions(-) delete mode 100644 matroska/FileKax.h delete mode 100644 src/FileKax.cpp diff --git a/CMakeLists.txt b/CMakeLists.txt index 8e76378b..d97c2480 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -41,7 +41,6 @@ if(DEV_MODE) endif() set(libmatroska_SOURCES - src/FileKax.cpp src/KaxAttached.cpp src/KaxAttachments.cpp src/KaxBlock.cpp @@ -57,7 +56,6 @@ set(libmatroska_SOURCES src/KaxVersion.cpp) set(libmatroska_PUBLIC_HEADERS - matroska/FileKax.h matroska/KaxBlockData.h matroska/KaxBlock.h matroska/KaxCluster.h diff --git a/matroska/FileKax.h b/matroska/FileKax.h deleted file mode 100644 index 90398ef0..00000000 --- a/matroska/FileKax.h +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright © 2002-2010 Steve Lhomme. -// SPDX-License-Identifier: LGPL-2.1-or-later - -/*! - \file - \author Steve Lhomme -*/ -#ifndef LIBMATROSKA_FILE_H -#define LIBMATROSKA_FILE_H - -//#include - -#include "matroska/KaxConfig.h" -#include -//#include "MainHeader.h" -//#include "TrackType.h" -//#include "StreamInfo.h" -//#include "Cluster.h" -//#include "CodecHeader.h" - -namespace libmatroska { - -//class Track; -//class Frame; - -/*! - \class MATROSKA_DLL_API FileMatroska - \brief General container of all the parameters and data of an Matroska file - \todo Handle the filename and next filename - \todo Handle the IOCallback selection/type -*/ -class MATROSKA_DLL_API FileMatroska { - public: - FileMatroska(libebml::IOCallback & output); - ~FileMatroska() = default; - libebml::IOCallback & myFile; - -}; - -} // namespace libmatroska - -#endif // FILE_KAX_HPP diff --git a/src/FileKax.cpp b/src/FileKax.cpp deleted file mode 100644 index ab22726b..00000000 --- a/src/FileKax.cpp +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright © 2002-2003 Steve Lhomme. -// SPDX-License-Identifier: LGPL-2.1-or-later - -/*! - \file - \author Steve Lhomme -*/ -//#include "StdInclude.h" -#include "matroska/FileKax.h" -#include -#include -//#include "Cluster.h" -//#include "Track.h" -//#include "Block.h" -//#include "Frame.h" -//#include "Version.h" - -using namespace libebml; - -namespace libmatroska { - -//typedef Track *TrackID; - -FileMatroska::FileMatroska(IOCallback & output) - :myFile(output) -{ -} - -/* FileMatroska::~FileMatroska() -{ - // if (myCurrCluster != NULL) - // throw 0; // there are some data left to write - // if (myCurrReadCluster != NULL || myCurrReadBlock != NULL) - // throw 0; // there are some data left to write -} */ - -} // namespace libmatroska diff --git a/test/mux/test6.cpp b/test/mux/test6.cpp index 3c32f92c..c571ae9a 100644 --- a/test/mux/test6.cpp +++ b/test/mux/test6.cpp @@ -7,7 +7,6 @@ \author Steve Lhomme */ -#include "matroska/FileKax.h" #include "matroska/KaxSegment.h" #include "matroska/KaxTracks.h" #include "matroska/KaxCluster.h" diff --git a/test/mux/test8.cpp b/test/mux/test8.cpp index c75fc210..436d00ae 100644 --- a/test/mux/test8.cpp +++ b/test/mux/test8.cpp @@ -8,7 +8,6 @@ */ #include "matroska/KaxSegment.h" -#include "matroska/FileKax.h" #include "matroska/KaxContexts.h" #include "matroska/KaxTracks.h" #include "matroska/KaxCluster.h" @@ -43,8 +42,6 @@ int main(int argc, char **argv) try { StdIOCallback Cluster_file((argc>=2 ? argv[1] : "muxed.mkv"), MODE_READ); - // create the Matroska file -/// FileKax MuxedFile(Cluster_file); // bool bAllowDummy = false; // don't read elements we don't know bool bAllowDummy = true; // even read elements we don't know (needed for CRC checking) @@ -56,7 +53,6 @@ int main(int argc, char **argv) EbmlElement * ElementLevel3 = nullptr; EbmlElement * ElementLevel4 = nullptr; -/// MuxedFile.ReadHead(); // find the EBML head in the file ElementLevel0 = aStream.FindNextID(EBML_INFO(EbmlHead), 0xFFFFFFFFL); if (ElementLevel0 != NULL) @@ -91,8 +87,6 @@ int main(int argc, char **argv) { if (EbmlId(*ElementLevel0) == EBML_ID(KaxSegment)) { Segment = static_cast(ElementLevel0); -// MuxedFile.ReadTracks(); -// MuxedFile.ReadCodec(); // scan the file for a Tracks element (all previous Level1 elements are discarded) ElementLevel1 = aStream.FindNextElement(EBML_CONTEXT(ElementLevel0), UpperElementLevel, 0, bAllowDummy); diff --git a/test/tags/test9.cpp b/test/tags/test9.cpp index 16d6ebbd..14e7016f 100644 --- a/test/tags/test9.cpp +++ b/test/tags/test9.cpp @@ -7,7 +7,6 @@ \author Moritz Bunkus */ -#include #include #include #include