From dcf55c7e328578d435eb14277cb6ba9e072f7e9c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 28 Jan 2013 20:32:23 +0100 Subject: InputStream: add constructor/destructor Eliminate input_stream_init() and input_stream_deinit(). --- src/InputInternal.cxx | 31 ------------------------------- 1 file changed, 31 deletions(-) (limited to 'src/InputInternal.cxx') diff --git a/src/InputInternal.cxx b/src/InputInternal.cxx index 52ca4cf00..a154b68da 100644 --- a/src/InputInternal.cxx +++ b/src/InputInternal.cxx @@ -21,37 +21,6 @@ #include "InputInternal.hxx" #include "InputStream.hxx" -#include - -void -input_stream_init(struct input_stream *is, const struct input_plugin *plugin, - const char *uri, Mutex &mutex, Cond &cond) -{ - assert(is != NULL); - assert(plugin != NULL); - assert(uri != NULL); - - is->plugin = plugin; - is->uri = g_strdup(uri); - is->mutex = &mutex; - is->cond = &cond; - is->ready = false; - is->seekable = false; - is->size = -1; - is->offset = 0; - is->mime = NULL; -} - -void -input_stream_deinit(struct input_stream *is) -{ - assert(is != NULL); - assert(is->plugin != NULL); - - g_free(is->uri); - g_free(is->mime); -} - void input_stream_signal_client(struct input_stream *is) { -- cgit v1.2.3