Selectors: remove unused move_select

This commit is contained in:
Maxime Coste 2011-10-12 18:54:04 +00:00
parent be043ffe1e
commit 80e7bac622
2 changed files with 0 additions and 9 deletions

View File

@ -136,14 +136,6 @@ Selection select_line(const BufferIterator& cursor)
return Selection(first, last); 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) Selection select_matching(const BufferIterator& cursor)
{ {
std::vector<char> matching_pairs = { '(', ')', '{', '}', '[', ']', '<', '>' }; std::vector<char> matching_pairs = { '(', ')', '{', '}', '[', ']', '<', '>' };

View File

@ -10,7 +10,6 @@ Selection select_to_next_word(const BufferIterator& cursor);
Selection select_to_next_word_end(const BufferIterator& cursor); Selection select_to_next_word_end(const BufferIterator& cursor);
Selection select_to_previous_word(const BufferIterator& cursor); Selection select_to_previous_word(const BufferIterator& cursor);
Selection select_line(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_matching(const BufferIterator& cursor);
Selection select_to(const BufferIterator& cursor, char c, int count, bool inclusive); Selection select_to(const BufferIterator& cursor, char c, int count, bool inclusive);