[vlc-commits] stream_filter: dash: remove unused segment methods

Francois Cartegnie git at videolan.org
Thu Dec 18 22:39:45 CET 2014


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Nov 18 14:16:02 2014 +0100| [247df4e90669143474d9e27ec2fcb4d4a776bcba] | committer: Francois Cartegnie

stream_filter: dash: remove unused segment methods

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=247df4e90669143474d9e27ec2fcb4d4a776bcba
---

 modules/stream_filter/dash/mpd/Segment.cpp |   19 ++-----------------
 modules/stream_filter/dash/mpd/Segment.h   |    4 ----
 2 files changed, 2 insertions(+), 21 deletions(-)

diff --git a/modules/stream_filter/dash/mpd/Segment.cpp b/modules/stream_filter/dash/mpd/Segment.cpp
index d9dc8f8..2152367 100644
--- a/modules/stream_filter/dash/mpd/Segment.cpp
+++ b/modules/stream_filter/dash/mpd/Segment.cpp
@@ -67,23 +67,13 @@ void                    Segment::addBaseUrl     (BaseUrl *url)
 {
     this->baseUrls.push_back(url);
 }
-const std::vector<BaseUrl *>&  Segment::getBaseUrls    () const
-{
-    return this->baseUrls;
-}
+
 void                    Segment::setByteRange   (int start, int end)
 {
     this->startByte = start;
     this->endByte   = end;
 }
-int                     Segment::getStartByte   () const
-{
-    return this->startByte;
-}
-int                     Segment::getEndByte     () const
-{
-    return this->endByte;
-}
+
 dash::http::Chunk*      Segment::toChunk        ()
 {
     Chunk *chunk = new Chunk();
@@ -123,8 +113,3 @@ const Representation *Segment::getParentRepresentation() const
 {
     return this->parentRepresentation;
 }
-
-int Segment::getSize() const
-{
-    return this->size;
-}
diff --git a/modules/stream_filter/dash/mpd/Segment.h b/modules/stream_filter/dash/mpd/Segment.h
index 880db4a..74fb21a 100644
--- a/modules/stream_filter/dash/mpd/Segment.h
+++ b/modules/stream_filter/dash/mpd/Segment.h
@@ -51,13 +51,9 @@ namespace dash
                 virtual bool                            isSingleShot    () const;
                 virtual void                            done            ();
                 virtual void                            addBaseUrl      (BaseUrl *url);
-                virtual const std::vector<BaseUrl *>&   getBaseUrls     () const;
                 virtual void                            setByteRange    (int start, int end);
-                virtual int                             getStartByte    () const;
-                virtual int                             getEndByte      () const;
                 virtual dash::http::Chunk*              toChunk         ();
                 const Representation*                   getParentRepresentation() const;
-                virtual int                             getSize() const;
 
             protected:
                 std::string             sourceUrl;



More information about the vlc-commits mailing list