Remove SelectionList::update_timestamp()

This single line member function was only used once, inline it
directly.
This commit is contained in:
Maxime Coste 2018-03-04 10:35:24 +11:00
parent 2fd42fe5fc
commit a2fc89a6ec
2 changed files with 1 additions and 3 deletions

View File

@ -48,12 +48,11 @@ void SelectionList::set(Vector<Selection> list, size_t main)
kak_assert(main < list.size()); kak_assert(main < list.size());
m_selections = std::move(list); m_selections = std::move(list);
m_main = main; m_main = main;
m_timestamp = m_buffer->timestamp();
sort_and_merge_overlapping(); sort_and_merge_overlapping();
update_timestamp();
check_invariant(); check_invariant();
} }
namespace namespace
{ {

View File

@ -137,7 +137,6 @@ struct SelectionList
Buffer& buffer() const { return *m_buffer; } Buffer& buffer() const { return *m_buffer; }
size_t timestamp() const { return m_timestamp; } size_t timestamp() const { return m_timestamp; }
void update_timestamp() { m_timestamp = m_buffer->timestamp(); }
void insert(ConstArrayView<String> strings, InsertMode mode, void insert(ConstArrayView<String> strings, InsertMode mode,
Vector<BufferCoord>* out_insert_pos = nullptr); Vector<BufferCoord>* out_insert_pos = nullptr);