aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2015-07-27 23:36:54 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2015-07-27 23:36:54 -0700
commitaee71b594b11d4bc6b5be9f4c6febb35c41a3096 (patch)
treec68e08e50dcef5d13f179fe507f21df41ba9e825
parent6e3231a9d705ee043cf827b22c807b0b96ea8893 (diff)
Remove unused unload_all function
-rw-r--r--src/autoload.cpp6
-rw-r--r--src/autoload.h5
2 files changed, 0 insertions, 11 deletions
diff --git a/src/autoload.cpp b/src/autoload.cpp
index c883f8bf..e0c16ab8 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 b4338538..08a67866 100644
--- a/src/autoload.h
+++ b/src/autoload.h
@@ -123,11 +123,6 @@ public:
*/
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);