diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2014-08-14 21:26:50 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2014-08-14 21:26:50 +0200 |
| commit | 9fc353f2f17d2191cccb53af390328aeb61eefb9 (patch) | |
| tree | 7f41f77764b286967b7a77f23a910d7c80f777e5 /text.c | |
| parent | 46f786c23dbf1cd6c179903cab42c4f3c024710c (diff) | |
| download | vis-9fc353f2f17d2191cccb53af390328aeb61eefb9.tar.gz vis-9fc353f2f17d2191cccb53af390328aeb61eefb9.tar.xz | |
Remove useless replace API
The removed junk might not have the same length as the newly inserted one.
Diffstat (limited to 'text.c')
| -rw-r--r-- | text.c | 10 |
1 files changed, 0 insertions, 10 deletions
@@ -756,16 +756,6 @@ bool text_delete(Text *ed, size_t pos, size_t len) { return true; } -bool text_replace_raw(Text *ed, size_t pos, const char *data, size_t len) { - if (!text_delete(ed, pos, len)) - return false; - return text_insert_raw(ed, pos, data, len); -} - -bool text_replace(Text *ed, size_t pos, const char *data) { - return text_replace_raw(ed, pos, data, strlen(data)); -} - /* preserve the current text content such that it can be restored by * means of undo/redo operations */ void text_snapshot(Text *ed) { |
