show: Remove now unused fields from notmuch_show_format

The message_set_{begin,sep,end} and null_message fields are no longer
used because we now use the structure printer provided by the format.
This commit is contained in:
Austin Clements 2012-08-02 21:14:59 -04:00 committed by David Bremner
parent e41417d7b4
commit 1cbaad158e
2 changed files with 0 additions and 8 deletions

View file

@ -71,13 +71,9 @@ struct notmuch_show_params;
typedef struct notmuch_show_format { typedef struct notmuch_show_format {
struct sprinter *(*new_sprinter) (const void *ctx, FILE *stream); struct sprinter *(*new_sprinter) (const void *ctx, FILE *stream);
const char *message_set_start;
notmuch_status_t (*part) (const void *ctx, struct sprinter *sprinter, notmuch_status_t (*part) (const void *ctx, struct sprinter *sprinter,
struct mime_node *node, int indent, struct mime_node *node, int indent,
const struct notmuch_show_params *params); const struct notmuch_show_params *params);
const char *message_set_sep;
const char *message_set_end;
const char *null_message;
} notmuch_show_format_t; } notmuch_show_format_t;
typedef struct notmuch_crypto { typedef struct notmuch_crypto {

View file

@ -37,11 +37,7 @@ format_part_json_entry (const void *ctx, sprinter_t *sp, mime_node_t *node,
static const notmuch_show_format_t format_json = { static const notmuch_show_format_t format_json = {
.new_sprinter = sprinter_json_create, .new_sprinter = sprinter_json_create,
.message_set_start = "[",
.part = format_part_json_entry, .part = format_part_json_entry,
.message_set_sep = ", ",
.message_set_end = "]",
.null_message = "null"
}; };
static notmuch_status_t static notmuch_status_t