summaryrefslogtreecommitdiff
path: root/point.cpp
diff options
context:
space:
mode:
authorJuan Manuel Tomás <jtomas1815@gmail.com>2020-07-07 17:43:50 -0300
committerJuan Manuel Tomás <jtomas1815@gmail.com>2020-07-07 17:43:50 -0300
commit2260209d3b09f728f0cbb891f5498a9f0f8e38eb (patch)
treee3f886518b49bc09eadbb7aa94cee1b37f6cc894 /point.cpp
parentc801730eda827ea2662ef703f694a2abde33f4c0 (diff)
downloadjet-2260209d3b09f728f0cbb891f5498a9f0f8e38eb.tar.gz
jet-2260209d3b09f728f0cbb891f5498a9f0f8e38eb.zip
Implement tui for client
Diffstat (limited to 'point.cpp')
-rw-r--r--point.cpp18
1 files changed, 0 insertions, 18 deletions
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();