diff --git a/src/selectors.cc b/src/selectors.cc index c4864c74..a30e1fe2 100644 --- a/src/selectors.cc +++ b/src/selectors.cc @@ -136,14 +136,6 @@ Selection select_line(const BufferIterator& cursor) return Selection(first, last); } -Selection move_select(Window& window, const BufferIterator& cursor, const WindowCoord& offset) -{ - WindowCoord cursor_pos = window.line_and_column_at(cursor); - WindowCoord new_pos = cursor_pos + offset; - - return Selection(cursor, window.iterator_at(new_pos)); -} - Selection select_matching(const BufferIterator& cursor) { std::vector matching_pairs = { '(', ')', '{', '}', '[', ']', '<', '>' }; diff --git a/src/selectors.hh b/src/selectors.hh index 4849ea5c..370df3cf 100644 --- a/src/selectors.hh +++ b/src/selectors.hh @@ -10,7 +10,6 @@ Selection select_to_next_word(const BufferIterator& cursor); Selection select_to_next_word_end(const BufferIterator& cursor); Selection select_to_previous_word(const BufferIterator& cursor); Selection select_line(const BufferIterator& cursor); -Selection move_select(Window& window, const BufferIterator& cursor, const WindowCoord& offset); Selection select_matching(const BufferIterator& cursor); Selection select_to(const BufferIterator& cursor, char c, int count, bool inclusive);