From b6b1e538a74200e8e147ba912a9e6764c813ba3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Fri, 23 Jan 2004 07:06:12 +0000 Subject: [PATCH] Removed all now unused functionality. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6236 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/media/DecoderPlugin.cpp | 35 ++++++++++++++------------------ 1 file changed, 15 insertions(+), 20 deletions(-) diff --git a/src/kits/media/DecoderPlugin.cpp b/src/kits/media/DecoderPlugin.cpp index 3c7f5795e2..093ab25bcb 100644 --- a/src/kits/media/DecoderPlugin.cpp +++ b/src/kits/media/DecoderPlugin.cpp @@ -1,18 +1,27 @@ +/* +** Copyright 2004, Marcus Overhagen. All rights reserved. +** Distributed under the terms of the OpenBeOS License. +*/ + + #include "DecoderPlugin.h" -#include "PluginManager.h" + #include #include #include + Decoder::Decoder() { fChunkProvider = 0; } + Decoder::~Decoder() { delete fChunkProvider; } + status_t Decoder::GetNextChunk(void **chunkBuffer, int32 *chunkSize, @@ -21,6 +30,7 @@ Decoder::GetNextChunk(void **chunkBuffer, int32 *chunkSize, return fChunkProvider->GetNextChunk(chunkBuffer, chunkSize, mediaHeader); } + void Decoder::Setup(ChunkProvider *provider) { @@ -28,26 +38,11 @@ Decoder::Setup(ChunkProvider *provider) fChunkProvider = provider; } + +// #pragma mark - + + DecoderPlugin::DecoderPlugin() - : fPublishHook(0) { } -typedef status_t (*publish_func)(DecoderPlugin *, const char *, const char *, const char *, const char *); - -status_t -DecoderPlugin::PublishDecoder(const char *meta_description, - const char *short_name, - const char *pretty_name, - const char *default_mapping /* = 0 */) -{ - if (fPublishHook) - return ((publish_func)fPublishHook)(this, meta_description, short_name, pretty_name, default_mapping); - return B_ERROR; -} - -void -DecoderPlugin::Setup(void *publish_hook) -{ - fPublishHook = publish_hook; -}