diff options
author | Juan Manuel Tomás <jtomas1815@gmail.com> | 2020-07-07 17:43:50 -0300 |
---|---|---|
committer | Juan Manuel Tomás <jtomas1815@gmail.com> | 2020-07-07 17:43:50 -0300 |
commit | 2260209d3b09f728f0cbb891f5498a9f0f8e38eb (patch) | |
tree | e3f886518b49bc09eadbb7aa94cee1b37f6cc894 /point.cpp | |
parent | c801730eda827ea2662ef703f694a2abde33f4c0 (diff) | |
download | jet-2260209d3b09f728f0cbb891f5498a9f0f8e38eb.tar.gz jet-2260209d3b09f728f0cbb891f5498a9f0f8e38eb.zip |
Implement tui for client
Diffstat (limited to 'point.cpp')
-rw-r--r-- | point.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
@@ -93,24 +93,6 @@ struct Point { return next_byte(); } - uint64_t seek(uint8_t c, uint64_t limit) { - uint64_t travel_distance = 0; - while (!at_end() && next_byte() != c && travel_distance < limit) { - (*this)++; - travel_distance++; - } - return travel_distance; - } - - uint64_t rseek(uint8_t c, uint64_t limit) { - uint64_t travel_distance = 0; - while (!at_start() && prev_byte() != c && travel_distance < limit) { - (*this)--; - travel_distance++; - } - return travel_distance; - } - void align_gap() { while (page->gap_end < index_to_offset()) { page->move_gap_forward(); |