summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2013-12-15 20:32:58 +0000
committerMaxime Coste <frrrwww@gmail.com>2013-12-15 20:32:58 +0000
commitad0682ec75d072c648f044580d817bef4098abc0 (patch)
treeb281b2a93da95703cb606df0a1f489ad0469cd2f /src
parent8047cc97d3c30b53f8b701cebad9e7b838264db7 (diff)
remove unused Editor::check_invariant
Diffstat (limited to 'src')
-rw-r--r--src/editor.cc9
-rw-r--r--src/editor.hh5
2 files changed, 0 insertions, 14 deletions
diff --git a/src/editor.cc b/src/editor.cc
index 3655c0b4..13b4511f 100644
--- a/src/editor.cc
+++ b/src/editor.cc
@@ -24,13 +24,4 @@ std::vector<String> Editor::selections_content() const
return contents;
}
-void Editor::check_invariant() const
-{
-#ifdef KAK_DEBUG
- kak_assert(not m_selections.empty());
- m_selections.check_invariant();
- buffer().check_invariant();
-#endif
-}
-
}
diff --git a/src/editor.hh b/src/editor.hh
index d808fe76..c425da84 100644
--- a/src/editor.hh
+++ b/src/editor.hh
@@ -31,11 +31,6 @@ public:
std::vector<String> selections_content() const;
private:
- friend struct scoped_edition;
- friend class InputModes::Insert;
-
- void check_invariant() const;
-
safe_ptr<Buffer> m_buffer;
DynamicSelectionList m_selections;
};