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; };