aboutsummaryrefslogtreecommitdiff
path: root/src/InputInternal.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-28 20:32:23 +0100
committerMax Kellermann <max@duempel.org>2013-01-28 23:29:43 +0100
commitdcf55c7e328578d435eb14277cb6ba9e072f7e9c (patch)
tree0488d2de5ecfd090cce2e00cfbc4cdcd342c8194 /src/InputInternal.cxx
parente565cd440497d3b693e281046af485c667491441 (diff)
InputStream: add constructor/destructor
Eliminate input_stream_init() and input_stream_deinit().
Diffstat (limited to 'src/InputInternal.cxx')
-rw-r--r--src/InputInternal.cxx31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/InputInternal.cxx b/src/InputInternal.cxx
index 52ca4cf0..a154b68d 100644
--- a/src/InputInternal.cxx
+++ b/src/InputInternal.cxx
@@ -21,37 +21,6 @@
#include "InputInternal.hxx"
#include "InputStream.hxx"
-#include <assert.h>
-
-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)
{