From 58ef482f9fd42e07c3b2816a9f111205edb8327f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Fri, 3 Jul 2015 13:44:06 +0200 Subject: Remove text dump debugging code Instead use the text-dump git branch if necessary. --- text.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'text.c') diff --git a/text.c b/text.c index d6ba166..0f2e466 100644 --- a/text.c +++ b/text.c @@ -858,22 +858,6 @@ Text *text_load_fd(int fd) { return txt; } -static void print_piece(Piece *p) { - fprintf(stdout, "index: %d\tnext: %d\tprev: %d\t len: %zd\t data: %p\n", p->index, - p->next ? p->next->index : -1, - p->prev ? p->prev->index : -1, - p->len, p->data); - fwrite(p->data, p->len, 1, stdout); - fputc('\n', stdout); - fflush(stdout); -} - -void text_debug(Text *txt) { - for (Piece *p = &txt->begin; p; p = p->next) { - print_piece(p); - } -} - /* A delete operation can either start/stop midway through a piece or at * a boundry. In the former case a new piece is created to represent the * remaining text before/after the modification point. -- cgit v1.2.3