diff options
Diffstat (limited to 'history.cpp')
-rw-r--r-- | history.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/history.cpp b/history.cpp index 2a367cd2..a3ef0ee9 100644 --- a/history.cpp +++ b/history.cpp @@ -656,7 +656,7 @@ void history_t::set_valid_file_paths(const wcstring_list_t &valid_file_paths, hi scoped_lock locker(lock); /* Look for an item with the given identifier. It is likely to be at the end of new_items */ - for (history_item_list_t::reverse_iterator iter = new_items.rbegin(); iter != new_items.rend(); iter++) + for (history_item_list_t::reverse_iterator iter = new_items.rbegin(); iter != new_items.rend(); ++iter) { if (iter->identifier == ident) { @@ -1565,12 +1565,6 @@ void history_t::save(void) this->save_internal(false); } -void history_t::save_and_vacuum(void) -{ - scoped_lock locker(lock); - this->save_internal(true); -} - void history_t::disable_automatic_saving() { scoped_lock locker(lock); |