1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-18 08:51:46 +03:00

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());
m_selections = std::move(list);
m_main = main;
m_timestamp = m_buffer->timestamp();
sort_and_merge_overlapping();
update_timestamp();
check_invariant();
}
namespace
{

View File

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