Remove unused WindowAndSelections timestamp field

The SelectionList already has a timestamp.
This commit is contained in:
Maxime Coste 2017-01-29 12:50:16 +00:00
parent 2b6fc6beb7
commit 0cb192921a
2 changed files with 1 additions and 3 deletions

View File

@ -122,8 +122,7 @@ WindowAndSelections ClientManager::get_free_window(Buffer& buffer)
void ClientManager::add_free_window(std::unique_ptr<Window>&& window, SelectionList selections)
{
window->clear_display_buffer();
Buffer& buffer = window->buffer();
m_free_windows.push_back({ std::move(window), SelectionList{ std::move(selections) }, buffer.timestamp() });
m_free_windows.push_back({ std::move(window), SelectionList{ std::move(selections) } });
}
void ClientManager::ensure_no_client_uses_buffer(Buffer& buffer)

View File

@ -11,7 +11,6 @@ struct WindowAndSelections
{
std::unique_ptr<Window> window;
SelectionList selections;
size_t timestamp;
};
class ClientManager : public Singleton<ClientManager>