Remove unused parameters to methods.
authorCarl Hetherington <cth@carlh.net>
Mon, 11 Jan 2016 10:36:03 +0000 (10:36 +0000)
committerCarl Hetherington <cth@carlh.net>
Thu, 14 Jan 2016 23:01:35 +0000 (23:01 +0000)
src/AS_02_PCM.cpp
src/AS_DCP_JP2K.cpp
src/KM_fileio.cpp
src/KM_xml.cpp
src/MPEG2_Parser.cpp
src/MXFTypes.h
src/asdcp-info.cpp
src/h__02_Writer.cpp
src/h__Writer.cpp

index ec6090089a97767f4585560e6358e6e6dab71598..598e926057144b363129ec8e1b4cbc9fd901fd91 100644 (file)
@@ -28,7 +28,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
 
 /*! \file    AS_02_PCM.cpp
-  \version $Id: AS_02_PCM.cpp,v 1.16 2015/10/07 16:41:23 jhurst Exp $       
+  \version $Id: AS_02_PCM.cpp,v 1.16 2015/10/07 16:41:23 jhurst Exp $
   \brief   AS-02 library, PCM essence reader and writer implementation
 */
 
@@ -117,7 +117,7 @@ AS_02::PCM::MXFReader::h__Reader::OpenRead(const std::string& filename, const AS
                {
                  DefaultLogSink().Error("Essence wrapper key is not WAVEssenceClip: %s\n", entry->name);
                }
-             
+
              return RESULT_AS02_FORMAT;
            }
 
@@ -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() )
     {
@@ -332,7 +332,7 @@ public:
   ASDCP::MXF::WaveAudioDescriptor *m_WaveAudioDescriptor;
   byte_t m_EssenceUL[SMPTE_UL_LENGTH];
   ui32_t m_BytesPerSample;
-  
+
   h__Writer(const Dictionary& d) : AS_02::h__AS02WriterClip(d), m_WaveAudioDescriptor(0), m_BytesPerSample(0)
   {
     memset(m_EssenceUL, 0, SMPTE_UL_LENGTH);
@@ -597,4 +597,3 @@ AS_02::PCM::MXFWriter::Finalize()
 //
 // end AS_02_PCM.cpp
 //
-
index 58781d61ea7f8b8d6de543d7c7436dc1cbe2d1a0..fa5955308f0973cd3f16db7124e933b1e1f137da 100755 (executable)
@@ -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)
 {
index 459a08d982730f7acf6d899f34eb73dda1bd2238..3dba202d4a3d5707787190093a32f92ed13d51f9 100644 (file)
@@ -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<ui32_t>(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);
index 31124f39b7ef9cc05e346c7a9b09e3db3dd06448..e8d1c3e45dc8899d41580c6e9202976aac72cc74 100644 (file)
@@ -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;
index 89d23134f36cd40b5a28cce4a6b1bc891c331b70..5d3ae0eefeeb568436693f2b2b9711187d35ccf6 100755 (executable)
@@ -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;
index 19f97c38ae2342f880ba8bad0fc109b0fa8e4b28..ff32a5e1a44fce5ca4e028326646d336b1220060 100755 (executable)
@@ -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];
 
index e20ae91cea672e0be2d4cb7d2b65052af61c55b6..b72fa1ab877a5f8200d07d39c5422d0d91738496 100755 (executable)
@@ -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;
index 972e556ca93219d2aedc7569d36f17105242e514..77c33ac67d977edd9209a932e7c93f743d1ef96f 100644 (file)
@@ -25,7 +25,7 @@ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/ 
+*/
 /*! \file    h__02_Writer.cpp
   \version $Id: h__02_Writer.cpp,v 1.14 2015/10/09 23:41:11 jhurst Exp $
   \brief   MXF file writer base class
@@ -58,7 +58,7 @@ AS_02::MXF::AS02IndexWriterVBR::WriteToFile(Kumu::FileWriter& Writer)
   assert(m_Dict);
   ASDCP::FrameBuffer index_body_buffer;
   ui32_t   index_body_size = m_PacketList->m_List.size() * MaxIndexSegmentSize; // segment-count * max-segment-size
-  Result_t result = index_body_buffer.Capacity(index_body_size); 
+  Result_t result = index_body_buffer.Capacity(index_body_size);
   ui64_t start_position = 0;
 
   if ( m_CurrentSegment != 0 )
@@ -185,7 +185,7 @@ AS_02::h__AS02WriterFrame::WriteEKLVPacket(const ASDCP::FrameBuffer& FrameBuf,co
                                      m_StreamOffset, FrameBuf, EssenceUL, Ctx, HMAC);
 
   if ( KM_SUCCESS(result) )
-    {  
+    {
       IndexTableSegment::IndexEntry Entry;
       Entry.StreamOffset = this_stream_offset;
       m_IndexWriter.PushIndexEntry(Entry);
@@ -233,7 +233,7 @@ AS_02::MXF::AS02IndexWriterCBR::WriteToFile(Kumu::FileWriter& Writer)
   assert(m_Dict);
   ASDCP::FrameBuffer index_body_buffer;
   ui32_t   index_body_size = MaxIndexSegmentSize; // segment-count * max-segment-size
-  Result_t result = index_body_buffer.Capacity(index_body_size); 
+  Result_t result = index_body_buffer.Capacity(index_body_size);
 
   m_CurrentSegment = new IndexTableSegment(m_Dict);
   assert(m_CurrentSegment);
@@ -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 )
     {
@@ -368,7 +368,7 @@ AS_02::h__AS02WriterClip::FinalizeClip(ui32_t bytes_per_frame)
       result = m_File.Seek(current_position);
       m_ClipStart = 0;
     }
-  
+
   return result;
 }
 
index c0ed2d3bc6904a7786179291f42fb6411c5795c2..5ed36ccf166350e4e8ec195ec0d75e15299dd283 100755 (executable)
@@ -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)