diff options
author | Max Kellermann <max@duempel.org> | 2013-01-29 23:36:58 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-30 15:30:19 +0100 |
commit | 16afdfd8747a1bd5af2d1acb4e0845bf9d0b89e7 (patch) | |
tree | 39afbcabd53af0000a8b200301bbfc1178fdadd5 /src/ArchivePlugin.cxx | |
parent | 701fff03d27be629f416534744217eadbde11da4 (diff) | |
download | mpd-16afdfd8747a1bd5af2d1acb4e0845bf9d0b89e7.tar.gz mpd-16afdfd8747a1bd5af2d1acb4e0845bf9d0b89e7.tar.xz mpd-16afdfd8747a1bd5af2d1acb4e0845bf9d0b89e7.zip |
ArchivePlugin: move instance methods to class ArchiveFile
Diffstat (limited to '')
-rw-r--r-- | src/ArchivePlugin.cxx | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/ArchivePlugin.cxx b/src/ArchivePlugin.cxx index db4bb1b58..7c5164220 100644 --- a/src/ArchivePlugin.cxx +++ b/src/ArchivePlugin.cxx @@ -34,9 +34,6 @@ archive_file_open(const struct archive_plugin *plugin, const char *path, ArchiveFile *file = plugin->open(path, error_r); if (file != NULL) { - assert(file->plugin.close != NULL); - assert(file->plugin.visit != nullptr); - assert(file->plugin.open_stream != NULL); assert(error_r == NULL || *error_r == NULL); } else { assert(error_r == NULL || *error_r != NULL); @@ -44,33 +41,3 @@ archive_file_open(const struct archive_plugin *plugin, const char *path, return file; } - -void -archive_file_close(ArchiveFile *file) -{ - assert(file != NULL); - assert(file->plugin.close != NULL); - - file->plugin.close(file); -} - -void -archive_file_visit(ArchiveFile *file, ArchiveVisitor &visitor) -{ - assert(file != NULL); - assert(file->plugin.visit != nullptr); - - file->plugin.visit(file, visitor); -} - -struct input_stream * -archive_file_open_stream(ArchiveFile *file, const char *path, - Mutex &mutex, Cond &cond, - GError **error_r) -{ - assert(file != NULL); - assert(file->plugin.open_stream != NULL); - - return file->plugin.open_stream(file, path, mutex, cond, - error_r); -} |