aboutsummaryrefslogtreecommitdiff
path: root/text.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-07-03 13:44:06 +0200
committerMarc André Tanner <mat@brain-dump.org>2015-07-03 13:44:06 +0200
commit58ef482f9fd42e07c3b2816a9f111205edb8327f (patch)
treeb80e54173012fb1e72b4d9d2f4982595317dd379 /text.c
parenta9263c79fa0afaebccb3b34a65d623e3028dee2c (diff)
downloadvis-58ef482f9fd42e07c3b2816a9f111205edb8327f.tar.gz
vis-58ef482f9fd42e07c3b2816a9f111205edb8327f.tar.xz
Remove text dump debugging code
Instead use the text-dump git branch if necessary.
Diffstat (limited to 'text.c')
-rw-r--r--text.c16
1 files changed, 0 insertions, 16 deletions
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.