From 49ee2495a47774db6102807e7d640924bb96d83d Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sat, 14 Dec 2013 18:41:55 +0000 Subject: [PATCH] Remove Editor::rotate_selections --- src/editor.hh | 2 -- src/normal.cc | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/editor.hh b/src/editor.hh index d6884340..3af52494 100644 --- a/src/editor.hh +++ b/src/editor.hh @@ -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 selections_content() const; diff --git a/src/normal.cc b/src/normal.cc index abcbe09f..27c2a963 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -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