From 80e7bac62209fca088d5ca9650a44738eea29ba6 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 12 Oct 2011 18:54:04 +0000 Subject: [PATCH] Selectors: remove unused move_select --- src/selectors.cc | 8 -------- src/selectors.hh | 1 - 2 files changed, 9 deletions(-) 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);