Context: remove some unused code

This commit is contained in:
Maxime Coste 2013-01-29 23:16:58 +01:00
parent 8933109cc5
commit 00a9cdfc90

View File

@ -22,16 +22,8 @@ struct Context
: m_editor(&editor) {}
Context(InputHandler& input_handler, UserInterface& ui)
: m_input_handler(&input_handler), m_ui(&ui) {}
Context(InputHandler& input_handler, Editor& editor, UserInterface& ui)
: m_input_handler(&input_handler), m_editor(&editor), m_ui(&ui) {}
// to allow func(Context(Editor(...)))
// make sure the context will not survive the next ';'
explicit Context(Editor&& editor)
: m_editor(&editor) {}
Context(const Context&) = delete;
Context(Context&&) = default;
Context& operator=(const Context&) = delete;
Buffer& buffer() const