summaryrefslogtreecommitdiff
path: root/src/buffer.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2012-11-22 14:08:55 +0100
committerMaxime Coste <frrrwww@gmail.com>2012-11-22 14:08:55 +0100
commit08ad8e8a40ad189271ecea84ad31bd9ea4d9a5e6 (patch)
tree72765cbbb6e45262c1cae83a1c77d037b6055808 /src/buffer.hh
parent3b5530ac09bc688f39cd4cd3c4845d8750664ce9 (diff)
move Window ownership to the ClientManager instead of the Buffer
Diffstat (limited to 'src/buffer.hh')
-rw-r--r--src/buffer.hh13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/buffer.hh b/src/buffer.hh
index db61d371..05776689 100644
--- a/src/buffer.hh
+++ b/src/buffer.hh
@@ -15,7 +15,6 @@ namespace Kakoune
{
class Buffer;
-class Window;
struct BufferCoord : LineAndColumn<BufferCoord, LineCount, ByteCount>
{
@@ -145,12 +144,6 @@ public:
const String& name() const { return m_name; }
- // Window handling
- using WindowList = std::vector<std::unique_ptr<Window>>;
- const WindowList& windows() const { return m_windows; }
- Window& new_window();
- void delete_window(Window& window);
-
// returns true if the buffer is in a different state than
// the last time it was saved
bool is_modified() const;
@@ -221,13 +214,11 @@ private:
void apply_modification(const Modification& modification);
void revert_modification(const Modification& modification);
- WindowList m_windows;
-
size_t m_last_save_undo_index;
size_t m_timestamp;
- // this mutable as adding or removing listeners is not muting the buffer
- // observable state.
+ // this is mutable as adding or removing listeners is not muting the
+ // buffer observable state.
mutable std::vector<BufferChangeListener*> m_change_listeners;
OptionManager m_options;