[vlc-commits] demux:adaptive: remove dead code
Steve Lhomme
git at videolan.org
Fri Jul 6 09:20:39 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Jun 11 12:59:50 2018 +0200| [761c1533f9300bdcfc56bde8755698bd9016e403] | committer: Steve Lhomme
demux:adaptive: remove dead code
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=761c1533f9300bdcfc56bde8755698bd9016e403
---
modules/demux/adaptive/playlist/SegmentTimeline.cpp | 16 ----------------
modules/demux/adaptive/playlist/SegmentTimeline.h | 2 --
2 files changed, 18 deletions(-)
diff --git a/modules/demux/adaptive/playlist/SegmentTimeline.cpp b/modules/demux/adaptive/playlist/SegmentTimeline.cpp
index 4bd7dc6599..eabc4e6fdc 100644
--- a/modules/demux/adaptive/playlist/SegmentTimeline.cpp
+++ b/modules/demux/adaptive/playlist/SegmentTimeline.cpp
@@ -248,22 +248,6 @@ void SegmentTimeline::mergeWith(SegmentTimeline &other)
}
}
-vlc_tick_t SegmentTimeline::start() const
-{
- if(elements.empty())
- return 0;
- return inheritTimescale().ToTime(elements.front()->t);
-}
-
-vlc_tick_t SegmentTimeline::end() const
-{
- if(elements.empty())
- return 0;
- const Element *last = elements.back();
- stime_t scaled = last->t + last->d * (last->r + 1);
- return inheritTimescale().ToTime(scaled);
-}
-
void SegmentTimeline::debug(vlc_object_t *obj, int indent) const
{
std::stringstream ss;
diff --git a/modules/demux/adaptive/playlist/SegmentTimeline.h b/modules/demux/adaptive/playlist/SegmentTimeline.h
index 7ea91c4d8b..c3cca660d5 100644
--- a/modules/demux/adaptive/playlist/SegmentTimeline.h
+++ b/modules/demux/adaptive/playlist/SegmentTimeline.h
@@ -50,8 +50,6 @@ namespace adaptive
void pruneByPlaybackTime(vlc_tick_t);
size_t pruneBySequenceNumber(uint64_t);
void mergeWith(SegmentTimeline &);
- vlc_tick_t start() const;
- vlc_tick_t end() const;
void debug(vlc_object_t *, int = 0) const;
private:
More information about the vlc-commits
mailing list