From ad0682ec75d072c648f044580d817bef4098abc0 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 15 Dec 2013 20:32:58 +0000 Subject: [PATCH] remove unused Editor::check_invariant --- src/editor.cc | 9 --------- src/editor.hh | 5 ----- 2 files changed, 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 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 selections_content() const; private: - friend struct scoped_edition; - friend class InputModes::Insert; - - void check_invariant() const; - safe_ptr m_buffer; DynamicSelectionList m_selections; };