[vlc-devel] [PATCH 06/34] mkv: removed unnecessary variable EbmlParser::mi_remain_size

Filip Roséen filip at videolabs.io
Fri May 6 19:08:45 CEST 2016


Since this data-member is effectively unused after initialization, it
has been removed.
---
 modules/demux/mkv/Ebml_parser.cpp | 1 -
 modules/demux/mkv/Ebml_parser.hpp | 1 -
 2 files changed, 2 deletions(-)

diff --git a/modules/demux/mkv/Ebml_parser.cpp b/modules/demux/mkv/Ebml_parser.cpp
index 7bcce84..d0abab7 100644
--- a/modules/demux/mkv/Ebml_parser.cpp
+++ b/modules/demux/mkv/Ebml_parser.cpp
@@ -39,7 +39,6 @@ EbmlParser::EbmlParser( EbmlStream *es, EbmlElement *el_start, demux_t *p_demux,
     mb_keep( false ),
     mb_dummy( b_with_dummy )
 {
-    mi_remain_size[0] = el_start->GetSize();
     memset( m_el, 0, sizeof( *m_el ) * M_EL_MAXSIZE);
     m_el[0] = el_start;
 }
diff --git a/modules/demux/mkv/Ebml_parser.hpp b/modules/demux/mkv/Ebml_parser.hpp
index 5dc425f..596e7ec 100644
--- a/modules/demux/mkv/Ebml_parser.hpp
+++ b/modules/demux/mkv/Ebml_parser.hpp
@@ -60,7 +60,6 @@ class EbmlParser
     EbmlStream  *m_es;
     int          mi_level;
     EbmlElement *m_el[M_EL_MAXSIZE];
-    int64_t      mi_remain_size[10];
 
     EbmlElement *m_got;
 
-- 
2.8.2



More information about the vlc-devel mailing list