From: Andre Noll Date: Mon, 25 Jun 2012 11:16:51 +0000 (+0200) Subject: write: Remove ->shutdown. X-Git-Tag: v0.4.11~8 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=49ae9b0afbaa8b1ac05c7956f325c4f7a710b59a write: Remove ->shutdown. No writer implements this method, and nobody even looks at this pointer. Remove it. --- diff --git a/alsa_write.c b/alsa_write.c index a211985a..f50ad6a3 100644 --- a/alsa_write.c +++ b/alsa_write.c @@ -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, diff --git a/ao_write.c b/ao_write.c index 6dc3192c..93861ab6 100644 --- a/ao_write.c +++ b/ao_write.c @@ -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, }; diff --git a/file_write.c b/file_write.c index 458c7f3e..5c5c5149 100644 --- a/file_write.c +++ b/file_write.c @@ -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 diff --git a/oss_write.c b/oss_write.c index f1e90199..eae4167a 100644 --- a/oss_write.c +++ b/oss_write.c @@ -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 diff --git a/osx_write.c b/osx_write.c index edb9f923..0f9d9605 100644 --- a/osx_write.c +++ b/osx_write.c @@ -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 56a9711a..ddf43b69 100644 --- 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; /**