Remove write-only assignments from autload.cpp

This commit is contained in:
Mahmoud Al-Qudsi 2019-01-16 15:46:11 -06:00
parent 53355885c8
commit 20cdcfadac

View File

@ -134,11 +134,10 @@ autoload_function_t *autoload_t::get_autoloaded_function_with_creation(const wcs
ASSERT_IS_LOCKED(lock);
autoload_function_t *func = this->get(cmd);
if (!func) {
bool added;
if (allow_eviction) {
added = this->insert(cmd, autoload_function_t(false));
this->insert(cmd, autoload_function_t(false));
} else {
added = this->insert_no_eviction(cmd, autoload_function_t(false));
this->insert_no_eviction(cmd, autoload_function_t(false));
}
func = this->get(cmd);
assert(func);