dovecot-2.2: doveadm fetch: Removed unused code.
dovecot at dovecot.org
dovecot at dovecot.org
Tue Feb 17 20:06:37 UTC 2015
details: http://hg.dovecot.org/dovecot-2.2/rev/f30bc964ac34
changeset: 18259:f30bc964ac34
user: Timo Sirainen <tss at iki.fi>
date: Tue Feb 17 22:06:14 2015 +0200
description:
doveadm fetch: Removed unused code.
diffstat:
src/doveadm/doveadm-mail-fetch.c | 12 ------------
1 files changed, 0 insertions(+), 12 deletions(-)
diffs (43 lines):
diff -r a27eed623099 -r f30bc964ac34 src/doveadm/doveadm-mail-fetch.c
--- a/src/doveadm/doveadm-mail-fetch.c Tue Feb 17 20:43:57 2015 +0200
+++ b/src/doveadm/doveadm-mail-fetch.c Tue Feb 17 22:06:14 2015 +0200
@@ -25,7 +25,6 @@
struct fetch_cmd_context {
struct doveadm_mail_cmd_context ctx;
- struct ostream *output;
struct mail *mail;
ARRAY(struct fetch_field) fields;
@@ -525,13 +524,6 @@
return ret;
}
-static void cmd_fetch_deinit(struct doveadm_mail_cmd_context *_ctx)
-{
- struct fetch_cmd_context *ctx = (struct fetch_cmd_context *)_ctx;
-
- o_stream_unref(&ctx->output);
-}
-
static void cmd_fetch_init(struct doveadm_mail_cmd_context *_ctx,
const char *const args[])
{
@@ -543,9 +535,6 @@
parse_fetch_fields(ctx, fetch_fields);
_ctx->search_args = doveadm_mail_build_search_args(args + 1);
-
- ctx->output = o_stream_create_fd(STDOUT_FILENO, 0, FALSE);
- o_stream_set_no_error_handling(ctx->output, TRUE);
}
static struct doveadm_mail_cmd_context *cmd_fetch_alloc(void)
@@ -555,7 +544,6 @@
ctx = doveadm_mail_cmd_alloc(struct fetch_cmd_context);
ctx->ctx.v.init = cmd_fetch_init;
ctx->ctx.v.run = cmd_fetch_run;
- ctx->ctx.v.deinit = cmd_fetch_deinit;
doveadm_print_init("pager");
return &ctx->ctx;
}
More information about the dovecot-cvs
mailing list