From 6641583a68607ed4170eaac2e84bb4d14c83b704 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 15 Dec 2013 20:53:29 +0000 Subject: [PATCH] cleanup editor.hh, remove editor.cc... --- src/editor.cc | 19 ------------------- src/editor.hh | 15 +++++---------- 2 files changed, 5 insertions(+), 29 deletions(-) delete mode 100644 src/editor.cc diff --git a/src/editor.cc b/src/editor.cc deleted file mode 100644 index 8f6bbcf5..00000000 --- a/src/editor.cc +++ /dev/null @@ -1,19 +0,0 @@ -#include "editor.hh" - -#include "exception.hh" -#include "register.hh" -#include "register_manager.hh" -#include "utf8_iterator.hh" -#include "utils.hh" - -#include - -namespace Kakoune -{ - -Editor::Editor(Buffer& buffer) - : m_buffer(&buffer), - m_selections(buffer, {BufferCoord{}}) -{} - -} diff --git a/src/editor.hh b/src/editor.hh index 0e068f90..11f3ecee 100644 --- a/src/editor.hh +++ b/src/editor.hh @@ -8,20 +8,15 @@ namespace Kakoune { -namespace InputModes { class Insert; } - -class Register; - -// An Editor is a buffer mutator -// -// The Editor class provides methods to manipulate a set of selections -// and to use these selections to mutate it's buffer. +// An Editor is a to be removed class from the past class Editor : public SafeCountable { public: - typedef std::function Selector; + Editor(Buffer& buffer) + : m_buffer(&buffer), + m_selections(buffer, {BufferCoord{}}) + {} - Editor(Buffer& buffer); virtual ~Editor() {} Buffer& buffer() const { return *m_buffer; }