]> git.tue.mpg.de Git - paraslash.git/commitdiff
write: Remove ->shutdown.
authorAndre Noll <maan@systemlinux.org>
Mon, 25 Jun 2012 11:16:51 +0000 (13:16 +0200)
committerAndre Noll <maan@systemlinux.org>
Sun, 8 Jul 2012 17:06:38 +0000 (17:06 +0000)
No writer implements this method, and nobody even looks at this
pointer. Remove it.

alsa_write.c
ao_write.c
file_write.c
oss_write.c
osx_write.c
write.h

index a211985ab94bb71406d7729793387bbabc5fc452..f50ad6a36e71a4f66a2747a6e7c4d08a4950089b 100644 (file)
@@ -358,7 +358,6 @@ void alsa_write_init(struct writer *w)
        w->pre_select = alsa_write_pre_select;
        w->post_select = alsa_write_post_select;
        w->parse_config_or_die = alsa_parse_config_or_die;
-       w->shutdown = NULL; /* nothing to do */
        w->free_config = alsa_free_config;
        w->help = (struct ggo_help) {
                .short_help = alsa_write_args_info_help,
index 6dc3192ccb710b12148bfc7a6417de3f07efd59c..93861ab63f50baf478bf74fe6f216fce6cf39f53 100644 (file)
@@ -375,7 +375,6 @@ void ao_write_init(struct writer *w)
        w->post_select = aow_post_select;
        w->parse_config_or_die = aow_parse_config_or_die;
        w->free_config = aow_free_config;
-       w->shutdown = NULL;
        w->help = (struct ggo_help) {
                .short_help = ao_write_args_info_help,
        };
index 458c7f3e6fab40f72d66b1c7cbc790ddb0d4131f..5c5c5149ab4d27f7f8853df6a47833948da30f74 100644 (file)
@@ -158,7 +158,6 @@ void file_write_init(struct writer *w)
        w->parse_config_or_die = file_write_parse_config_or_die;
        w->free_config = file_write_free_config;
        w->close = file_write_close;
-       w->shutdown = NULL; /* nothing to do */
        w->help = (struct ggo_help) {
                .short_help = file_write_args_info_help,
                .detailed_help = file_write_args_info_detailed_help
index f1e901993120008eb67a221c438b1b3f5c3a3c10..eae4167a18503b2cc8014a5069b53ce8c8eb9677 100644 (file)
@@ -233,7 +233,6 @@ void oss_write_init(struct writer *w)
        w->post_select = oss_post_select;
        w->parse_config_or_die = oss_parse_config_or_die;
        w->free_config = oss_free_config;
-       w->shutdown = NULL;
        w->help = (struct ggo_help) {
                .short_help = oss_write_args_info_help,
                .detailed_help = oss_write_args_info_detailed_help
index edb9f9230268c65703372e587e63140501e5e697..0f9d9605926a81fa5be0c4643ca6565fbe0391c2 100644 (file)
@@ -333,7 +333,6 @@ void osx_write_init(struct writer *w)
        w->post_select = osx_write_post_select;
        w->parse_config_or_die = osx_write_parse_config_or_die;
        w->free_config = osx_free_config;
-       w->shutdown = NULL; /* nothing to do */
        w->help = (struct ggo_help) {
                .short_help = osx_write_args_info_help,
                .detailed_help = osx_write_args_info_detailed_help
diff --git a/write.h b/write.h
index 56a9711a44af6fde00ef23f6f5d203e407daf4d0..ddf43b6932b9b894ce0dd08bb2a123691f86cdc4 100644 (file)
--- a/write.h
+++ b/write.h
@@ -72,12 +72,6 @@ struct writer {
         * This function is assumed to succeed.
         */
        void (*close)(struct writer_node *);
-       /**
-        * Shutdown the writer.
-        *
-        * This is a optional function pointer used for cleaning up.
-        */
-       void (*shutdown)(struct writer_node *);
        /** The short and the log help text of this writer. */
        struct ggo_help help;
        /**