From 6ca2dcd3f3509967727db480c3cd41ef3327a086 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 23 Nov 2020 22:56:23 +0100 Subject: [PATCH] Remove unused parameters to methods. --- src/AS_02_PCM.cpp | 2 +- src/AS_DCP_JP2K.cpp | 2 +- src/KM_fileio.cpp | 4 ++-- src/KM_xml.cpp | 4 ++-- src/MPEG2_Parser.cpp | 10 +++++----- src/MXFTypes.h | 4 ++-- src/asdcp-info.cpp | 4 ++-- src/h__02_Writer.cpp | 2 +- src/h__Writer.cpp | 2 +- 9 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/AS_02_PCM.cpp b/src/AS_02_PCM.cpp index 183f424..c3c6706 100644 --- a/src/AS_02_PCM.cpp +++ b/src/AS_02_PCM.cpp @@ -151,7 +151,7 @@ AS_02::PCM::MXFReader::h__Reader::OpenRead(const std::string& filename, const AS // ASDCP::Result_t AS_02::PCM::MXFReader::h__Reader::ReadFrame(ui32_t FrameNum, ASDCP::PCM::FrameBuffer& FrameBuf, - ASDCP::AESDecContext* Ctx, ASDCP::HMACContext* HMAC) + ASDCP::AESDecContext*, ASDCP::HMACContext*) { if ( ! m_File.IsOpen() ) { diff --git a/src/AS_DCP_JP2K.cpp b/src/AS_DCP_JP2K.cpp index 35929c6..7dcd5ee 100755 --- a/src/AS_DCP_JP2K.cpp +++ b/src/AS_DCP_JP2K.cpp @@ -207,7 +207,7 @@ static const byte_t s_PixelLayoutXYZ[PixelLayoutSize] = { 0xd8, 0x0c, 0xd9, 0x0c // ASDCP::Result_t ASDCP::JP2K_PDesc_to_MD(const JP2K::PictureDescriptor& PDesc, - const ASDCP::Dictionary& dict, + const ASDCP::Dictionary&, ASDCP::MXF::GenericPictureEssenceDescriptor& EssenceDescriptor, ASDCP::MXF::JPEG2000PictureSubDescriptor& EssenceSubDescriptor) { diff --git a/src/KM_fileio.cpp b/src/KM_fileio.cpp index ed8aa67..c95c690 100644 --- a/src/KM_fileio.cpp +++ b/src/KM_fileio.cpp @@ -1197,7 +1197,7 @@ Kumu::WriteStringIntoFile(const std::string& filename, const std::string& inStri // Kumu::Result_t -Kumu::ReadFileIntoObject(const std::string& Filename, Kumu::IArchive& Object, ui32_t max_size) +Kumu::ReadFileIntoObject(const std::string& Filename, Kumu::IArchive& Object, ui32_t) { ByteString Buffer; ui32_t file_size = static_cast(FileSize(Filename)); @@ -1258,7 +1258,7 @@ Kumu::WriteObjectIntoFile(const Kumu::IArchive& Object, const std::string& Filen // Result_t -Kumu::ReadFileIntoBuffer(const std::string& Filename, Kumu::ByteString& Buffer, ui32_t max_size) +Kumu::ReadFileIntoBuffer(const std::string& Filename, Kumu::ByteString& Buffer, ui32_t) { ui32_t file_size = FileSize(Filename); Result_t result = Buffer.Capacity(file_size); diff --git a/src/KM_xml.cpp b/src/KM_xml.cpp index 8345630..ff5b728 100644 --- a/src/KM_xml.cpp +++ b/src/KM_xml.cpp @@ -1059,14 +1059,14 @@ Kumu::XMLElement::ParseFirstFromString(const char* document, ui32_t doc_len) // bool -Kumu::XMLElement::ParseString(const char* document, ui32_t doc_len) +Kumu::XMLElement::ParseString(const char*, ui32_t) { DefaultLogSink().Error("Kumu compiled without XML parser support.\n"); return false; } bool -Kumu::XMLElement::ParseFirstFromString(const char* document, ui32_t doc_len) +Kumu::XMLElement::ParseFirstFromString(const char*, ui32_t) { DefaultLogSink().Error("Kumu compiled without XML parser support.\n"); return false; diff --git a/src/MPEG2_Parser.cpp b/src/MPEG2_Parser.cpp index 89abbfd..abfe32b 100755 --- a/src/MPEG2_Parser.cpp +++ b/src/MPEG2_Parser.cpp @@ -192,7 +192,7 @@ public: ~StreamParams() {} // - Result_t Sequence(VESParser*, const byte_t* b, ui32_t s) + Result_t Sequence(VESParser*, const byte_t* b, ui32_t) { Result_t result = m_State.Goto_SEQ(); @@ -211,7 +211,7 @@ public: } // - Result_t Extension(VESParser*, const byte_t* b, ui32_t s) + Result_t Extension(VESParser*, const byte_t* b, ui32_t) { Result_t result = m_State.Goto_EXT(); @@ -286,7 +286,7 @@ public: m_State.Reset(); } - Result_t Sequence(VESParser*, const byte_t* b, ui32_t s) + Result_t Sequence(VESParser*, const byte_t*, ui32_t s) { if ( m_State.Test_SLICE() ) { @@ -324,7 +324,7 @@ public: return m_State.Test_SLICE() ? RESULT_OK : RESULT_FAIL; } - Result_t Extension(VESParser*, const byte_t* b, ui32_t s) + Result_t Extension(VESParser*, const byte_t*, ui32_t s) { m_FrameSize += s; return m_State.Goto_EXT(); @@ -339,7 +339,7 @@ public: return m_State.Goto_GOP(); } - Result_t Data(VESParser*, const byte_t* b, i32_t s) + Result_t Data(VESParser*, const byte_t*, i32_t s) { m_FrameSize += s; return RESULT_OK; diff --git a/src/MXFTypes.h b/src/MXFTypes.h index f74f4f5..b1aa39a 100755 --- a/src/MXFTypes.h +++ b/src/MXFTypes.h @@ -156,7 +156,7 @@ namespace ASDCP return result; } - void Dump(FILE* stream = 0, ui32_t depth = 0) { + void Dump(FILE* stream = 0, ui32_t = 0) { char identbuf[IdentBufferLen]; if ( stream == 0 ) @@ -250,7 +250,7 @@ namespace ASDCP } // - void Dump(FILE* stream = 0, ui32_t depth = 0) + void Dump(FILE* stream = 0, ui32_t = 0) { char identbuf[IdentBufferLen]; diff --git a/src/asdcp-info.cpp b/src/asdcp-info.cpp index b8876fe..ef9eaa3 100755 --- a/src/asdcp-info.cpp +++ b/src/asdcp-info.cpp @@ -352,7 +352,7 @@ public: } // - void get_PictureEssenceCoding(FILE* stream = 0) + void get_PictureEssenceCoding(FILE* = 0) { const Dictionary& Dict = DefaultCompositeDict(); MXF::RGBAEssenceDescriptor *descriptor = 0; @@ -462,7 +462,7 @@ public: // void - calc_Bitrate(FILE* stream = 0) + calc_Bitrate(FILE* = 0) { MXF::OPAtomIndexFooter& footer = m_Reader.OPAtomIndexFooter(); ui64_t total_frame_bytes = 0, last_stream_offset = 0; diff --git a/src/h__02_Writer.cpp b/src/h__02_Writer.cpp index f400afd..25d1b60 100644 --- a/src/h__02_Writer.cpp +++ b/src/h__02_Writer.cpp @@ -306,7 +306,7 @@ AS_02::h__AS02WriterClip::HasOpenClip() const // Result_t -AS_02::h__AS02WriterClip::StartClip(const byte_t* EssenceUL, AESEncContext* Ctx, HMACContext* HMAC) +AS_02::h__AS02WriterClip::StartClip(const byte_t* EssenceUL, AESEncContext* Ctx, HMACContext*) { if ( Ctx != 0 ) { diff --git a/src/h__Writer.cpp b/src/h__Writer.cpp index 07d418f..a0fa2fc 100755 --- a/src/h__Writer.cpp +++ b/src/h__Writer.cpp @@ -227,7 +227,7 @@ ASDCP::h__ASDCPWriter::WriteASDCPFooter() // standard method of writing a plaintext or encrypted frame Result_t -ASDCP::Write_EKLV_Packet(Kumu::FileWriter& File, const ASDCP::Dictionary& Dict, const MXF::OP1aHeader& HeaderPart, +ASDCP::Write_EKLV_Packet(Kumu::FileWriter& File, const ASDCP::Dictionary& Dict, const MXF::OP1aHeader&, const ASDCP::WriterInfo& Info, ASDCP::FrameBuffer& CtFrameBuf, ui32_t& FramesWritten, ui64_t & StreamOffset, const ASDCP::FrameBuffer& FrameBuf, const byte_t* EssenceUL, AESEncContext* Ctx, HMACContext* HMAC) -- 2.30.2