diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2015-07-03 13:44:06 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-07-03 13:44:06 +0200 |
| commit | 58ef482f9fd42e07c3b2816a9f111205edb8327f (patch) | |
| tree | b80e54173012fb1e72b4d9d2f4982595317dd379 | |
| parent | a9263c79fa0afaebccb3b34a65d623e3028dee2c (diff) | |
| download | vis-58ef482f9fd42e07c3b2816a9f111205edb8327f.tar.gz vis-58ef482f9fd42e07c3b2816a9f111205edb8327f.tar.xz | |
Remove text dump debugging code
Instead use the text-dump git branch if necessary.
| -rw-r--r-- | text.c | 16 | ||||
| -rw-r--r-- | text.h | 3 |
2 files changed, 0 insertions, 19 deletions
@@ -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. @@ -114,7 +114,4 @@ void text_regex_free(Regex *r); int text_search_range_forward(Text*, size_t pos, size_t len, Regex *r, size_t nmatch, RegexMatch pmatch[], int eflags); int text_search_range_backward(Text*, size_t pos, size_t len, Regex *r, size_t nmatch, RegexMatch pmatch[], int eflags); -// TMP -void text_debug(Text*); - #endif |
