Remove Editor::rotate_selections

This commit is contained in:
Maxime Coste 2013-12-14 18:41:55 +00:00
parent d0d9717fcf
commit 49ee2495a4
2 changed files with 2 additions and 4 deletions

View File

@ -58,8 +58,6 @@ public:
void move_selections(CharCount move,
SelectMode mode = SelectMode::Replace);
void rotate_selections(int count) { m_selections.rotate_main(count); }
const SelectionList& selections() const { return m_selections; }
SelectionList& selections() { return m_selections; }
std::vector<String> selections_content() const;

View File

@ -786,7 +786,7 @@ void scroll(Context& context, int)
void rotate_selections(Context& context, int count)
{
context.editor().rotate_selections(count != 0 ? count : 1);
context.editor().selections().rotate_main(count != 0 ? count : 1);
}
void rotate_selections_content(Context& context, int count)
@ -798,7 +798,7 @@ void rotate_selections_content(Context& context, int count)
count = count % strings.size();
std::rotate(strings.begin(), strings.end()-count, strings.end());
editor.insert(strings, InsertMode::Replace);
editor.rotate_selections(count);
editor.selections().rotate_main(count);
}
enum class SelectFlags