aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Clements <amdragon@MIT.EDU>2012-08-02 21:14:59 -0400
committerDavid Bremner <bremner@debian.org>2012-08-03 20:40:01 -0300
commit1cbaad158e36a1402f1f9bc49ba7f2b56640c0d1 (patch)
tree47bcfa29048bf62ac0de9f45e8f21286493a4092
parente41417d7b42558f13f74cdf4506b316f9942de48 (diff)
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.
-rw-r--r--notmuch-client.h4
-rw-r--r--notmuch-show.c4
2 files changed, 0 insertions, 8 deletions
diff --git a/notmuch-client.h b/notmuch-client.h
index b11caff..ae9344b 100644
--- a/notmuch-client.h
+++ b/notmuch-client.h
@@ -71,13 +71,9 @@ struct notmuch_show_params;
typedef struct notmuch_show_format {
struct sprinter *(*new_sprinter) (const void *ctx, FILE *stream);
- const char *message_set_start;
notmuch_status_t (*part) (const void *ctx, struct sprinter *sprinter,
struct mime_node *node, int indent,
const struct notmuch_show_params *params);
- const char *message_set_sep;
- const char *message_set_end;
- const char *null_message;
} notmuch_show_format_t;
typedef struct notmuch_crypto {
diff --git a/notmuch-show.c b/notmuch-show.c
index 89bf2e7..3556293 100644
--- a/notmuch-show.c
+++ b/notmuch-show.c
@@ -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 = {
.new_sprinter = sprinter_json_create,
- .message_set_start = "[",
.part = format_part_json_entry,
- .message_set_sep = ", ",
- .message_set_end = "]",
- .null_message = "null"
};
static notmuch_status_t