summaryrefslogtreecommitdiff
path: root/src/editor.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2013-12-20 20:10:08 +0000
committerMaxime Coste <frrrwww@gmail.com>2013-12-20 20:14:57 +0000
commitc0973075fafc7003be1028922bf99a2c48bcdcd6 (patch)
tree303d3d6b03942857775f7c0d2e15d621a6f6df37 /src/editor.hh
parentcb324a4b8842d6d45a7dba316cd4f909addb99c2 (diff)
Get rid of Editor for good
ClientManager now stores only the free windows, clients take ownership of its own.
Diffstat (limited to 'src/editor.hh')
-rw-r--r--src/editor.hh35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/editor.hh b/src/editor.hh
deleted file mode 100644
index 11f3ecee..00000000
--- a/src/editor.hh
+++ /dev/null
@@ -1,35 +0,0 @@
-#ifndef editor_hh_INCLUDED
-#define editor_hh_INCLUDED
-
-#include "buffer.hh"
-#include "dynamic_selection_list.hh"
-#include "memoryview.hh"
-
-namespace Kakoune
-{
-
-// An Editor is a to be removed class from the past
-class Editor : public SafeCountable
-{
-public:
- Editor(Buffer& buffer)
- : m_buffer(&buffer),
- m_selections(buffer, {BufferCoord{}})
- {}
-
- virtual ~Editor() {}
-
- Buffer& buffer() const { return *m_buffer; }
-
- const SelectionList& selections() const { return m_selections; }
- SelectionList& selections() { return m_selections; }
-
-private:
- safe_ptr<Buffer> m_buffer;
- DynamicSelectionList m_selections;
-};
-
-}
-
-#endif // editor_hh_INCLUDED
-