summaryrefslogtreecommitdiff
path: root/src/dynamic_selection_list.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-05-14 00:59:36 +0100
committerMaxime Coste <frrrwww@gmail.com>2014-05-14 19:49:04 +0100
commitbf98b38afd5338f6be617cfaf4bb251eb011e2b0 (patch)
tree7832efaa75e4a6da23d57cf2672d60ce59c779d7 /src/dynamic_selection_list.cc
parentdb423e4a88be8799ce0cfae33ddbf4c6bae97e5f (diff)
Use a plain SelectionList for Context, remove DynamicSelectionList
Diffstat (limited to 'src/dynamic_selection_list.cc')
-rw-r--r--src/dynamic_selection_list.cc30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/dynamic_selection_list.cc b/src/dynamic_selection_list.cc
deleted file mode 100644
index f49b36c7..00000000
--- a/src/dynamic_selection_list.cc
+++ /dev/null
@@ -1,30 +0,0 @@
-#include "dynamic_selection_list.hh"
-
-namespace Kakoune
-{
-
-DynamicSelectionList::DynamicSelectionList(SelectionList selections)
- : SelectionList(std::move(selections)),
- BufferChangeListener_AutoRegister(const_cast<Buffer&>(buffer()))
-{
- check_invariant();
-}
-
-DynamicSelectionList& DynamicSelectionList::operator=(SelectionList selections)
-{
- SelectionList::operator=(std::move(selections));
- check_invariant();
- return *this;
-}
-
-void DynamicSelectionList::on_insert(const Buffer& buffer, ByteCoord begin, ByteCoord end, bool at_end)
-{
- update();
-}
-
-void DynamicSelectionList::on_erase(const Buffer& buffer, ByteCoord begin, ByteCoord end, bool at_end)
-{
- update();
-}
-
-}