From 2260209d3b09f728f0cbb891f5498a9f0f8e38eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20Tom=C3=A1s?= Date: Tue, 7 Jul 2020 17:43:50 -0300 Subject: Implement tui for client --- point.cpp | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'point.cpp') diff --git a/point.cpp b/point.cpp index b0be8e9..0e80e7f 100644 --- a/point.cpp +++ b/point.cpp @@ -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(); -- cgit v1.2.3