From aee71b594b11d4bc6b5be9f4c6febb35c41a3096 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Mon, 27 Jul 2015 23:36:54 -0700 Subject: [PATCH] Remove unused unload_all function --- src/autoload.cpp | 6 ------ src/autoload.h | 5 ----- 2 files changed, 11 deletions(-) diff --git a/src/autoload.cpp b/src/autoload.cpp index c883f8bf0..e0c16ab82 100644 --- a/src/autoload.cpp +++ b/src/autoload.cpp @@ -140,12 +140,6 @@ static bool script_name_precedes_script_name(const builtin_script_t &script1, co return wcscmp(script1.name, script2.name) < 0; } -void autoload_t::unload_all(void) -{ - scoped_lock locker(lock); - this->evict_all_nodes(); -} - /** Check whether the given command is loaded. */ bool autoload_t::has_tried_loading(const wcstring &cmd) { diff --git a/src/autoload.h b/src/autoload.h index b4338538d..08a678662 100644 --- a/src/autoload.h +++ b/src/autoload.h @@ -123,11 +123,6 @@ class autoload_t : private lru_cache_t */ int unload(const wcstring &cmd); - /** - Unloads all files. - */ - void unload_all(); - /** Check whether the given command could be loaded, but do not load it. */ bool can_load(const wcstring &cmd, const env_vars_snapshot_t &vars);