diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2011-10-12 18:54:04 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2011-10-12 18:54:04 +0000 |
| commit | 80e7bac62209fca088d5ca9650a44738eea29ba6 (patch) | |
| tree | f193a7e8a6e78220b2a2f0913681e30f6963cdd0 /src | |
| parent | be043ffe1ec568be991b61efc0e3ffdc7cb613c8 (diff) | |
Selectors: remove unused move_select
Diffstat (limited to 'src')
| -rw-r--r-- | src/selectors.cc | 8 | ||||
| -rw-r--r-- | src/selectors.hh | 1 |
2 files changed, 0 insertions, 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<char> 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); |
