diff options
author | Max Kellermann <max@duempel.org> | 2016-05-09 16:27:11 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2016-05-09 16:27:11 +0200 |
commit | 675e8667c21cb342cc4e07e30acf011a7cf44ed8 (patch) | |
tree | a0941bb650083fcaa09f2961ed8fcd396f9705a9 | |
parent | a1a26b70bca48de3a33bef46ba7c67f27091f023 (diff) |
lib/xiph/OggSyncState: remove unused method ExpectFirstPage()
-rw-r--r-- | src/lib/xiph/OggSyncState.hxx | 4 | ||||
-rw-r--r-- | src/lib/xiph/OggUtil.cxx | 12 | ||||
-rw-r--r-- | src/lib/xiph/OggUtil.hxx | 10 |
3 files changed, 0 insertions, 26 deletions
diff --git a/src/lib/xiph/OggSyncState.hxx b/src/lib/xiph/OggSyncState.hxx index 4451a0130..10eef11eb 100644 --- a/src/lib/xiph/OggSyncState.hxx +++ b/src/lib/xiph/OggSyncState.hxx @@ -60,10 +60,6 @@ public: return OggExpectPage(oy, page, reader); } - bool ExpectFirstPage(ogg_stream_state &os) { - return OggExpectFirstPage(oy, os, reader); - } - bool ExpectPageIn(ogg_stream_state &os) { return OggExpectPageIn(oy, os, reader); } diff --git a/src/lib/xiph/OggUtil.cxx b/src/lib/xiph/OggUtil.cxx index a5bf3976c..fa102fc88 100644 --- a/src/lib/xiph/OggUtil.cxx +++ b/src/lib/xiph/OggUtil.cxx @@ -50,18 +50,6 @@ OggExpectPage(ogg_sync_state &oy, ogg_page &page, Reader &reader) } bool -OggExpectFirstPage(ogg_sync_state &oy, ogg_stream_state &os, Reader &reader) -{ - ogg_page page; - if (!OggExpectPage(oy, page, reader)) - return false; - - ogg_stream_init(&os, ogg_page_serialno(&page)); - ogg_stream_pagein(&os, &page); - return true; -} - -bool OggExpectPageIn(ogg_sync_state &oy, ogg_stream_state &os, Reader &reader) { ogg_page page; diff --git a/src/lib/xiph/OggUtil.hxx b/src/lib/xiph/OggUtil.hxx index 6fb477acb..bd3cb2f23 100644 --- a/src/lib/xiph/OggUtil.hxx +++ b/src/lib/xiph/OggUtil.hxx @@ -46,16 +46,6 @@ bool OggExpectPage(ogg_sync_state &oy, ogg_page &page, Reader &reader); /** - * Combines OggExpectPage(), ogg_stream_init() and - * ogg_stream_pagein(). - * - * @return true if the stream was initialized and the first page was - * delivered to it - */ -bool -OggExpectFirstPage(ogg_sync_state &oy, ogg_stream_state &os, Reader &reader); - -/** * Combines OggExpectPage() and ogg_stream_pagein(). * * @return true if a page was delivered to the stream |