From 408d119a11198ea5d472a84ec44d427bd32326af Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sun, 6 Nov 2011 13:57:05 +0100 Subject: AUDIO: Remove unused makeRawDiskStream_OLD factory. --- audio/decoders/raw.cpp | 10 ---------- audio/decoders/raw.h | 22 ---------------------- 2 files changed, 32 deletions(-) (limited to 'audio/decoders') diff --git a/audio/decoders/raw.cpp b/audio/decoders/raw.cpp index 881b8c1d6a..9a68401fdf 100644 --- a/audio/decoders/raw.cpp +++ b/audio/decoders/raw.cpp @@ -337,14 +337,4 @@ SeekableAudioStream *makeRawStream(const byte *buffer, uint32 size, return makeRawStream(new Common::MemoryReadStream(buffer, size, disposeAfterUse), rate, flags, DisposeAfterUse::YES); } -SeekableAudioStream *makeRawDiskStream_OLD(Common::SeekableReadStream *stream, RawStreamBlock *block, int numBlocks, - int rate, byte flags, DisposeAfterUse::Flag disposeStream) { - assert(numBlocks > 0); - RawStreamBlockList blocks; - for (int i = 0; i < numBlocks; ++i) - blocks.push_back(block[i]); - - return makeRawStream(stream, blocks, rate, flags, disposeStream); -} - } // End of namespace Audio diff --git a/audio/decoders/raw.h b/audio/decoders/raw.h index 5cbf2c9b79..9d8884fa04 100644 --- a/audio/decoders/raw.h +++ b/audio/decoders/raw.h @@ -123,28 +123,6 @@ SeekableAudioStream *makeRawStream(Common::SeekableReadStream *stream, byte flags, DisposeAfterUse::Flag disposeAfterUse = DisposeAfterUse::YES); -/** - * NOTE: - * This API is considered deprecated. - * - * Creates a audio stream, which plays from given stream. - * - * @param stream Stream to play from - * @param block Pointer to an RawStreamBlock array - * @see RawStreamBlock - * @param numBlocks Number of blocks. - * @param rate The rate - * @param flags Flags combination. - * @see RawFlags - * @param disposeStream Whether the "stream" object should be destroyed after playback. - * @return The new SeekableAudioStream (or 0 on failure). - */ -SeekableAudioStream *makeRawDiskStream_OLD(Common::SeekableReadStream *stream, - RawStreamBlock *block, int numBlocks, - int rate, byte flags, - DisposeAfterUse::Flag disposeStream); - - } // End of namespace Audio #endif -- cgit v1.2.3