aboutsummaryrefslogtreecommitdiffhomepage
path: root/complete.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-02-07 21:23:12 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-02-07 21:23:12 -0800
commitc0e783eb6e8c12d12c9dfbc62c4d5f820e6df61d (patch)
treea7c1f4a3669bd7e69d10d802942acf888e51cfa1 /complete.cpp
parent399c78fbf74f0495c6b3ffd3871356c7dfdfbb13 (diff)
Excised some halloc
Diffstat (limited to 'complete.cpp')
-rw-r--r--complete.cpp28
1 files changed, 1 insertions, 27 deletions
diff --git a/complete.cpp b/complete.cpp
index ae7e6fef..8ae81f59 100644
--- a/complete.cpp
+++ b/complete.cpp
@@ -215,36 +215,10 @@ void completion_allocate(std::vector<completion_t> &completions, const wcstring
}
/**
- Destroys various structures used for tab-completion and free()s the memory used by them.
-*/
-static void complete_destroy()
-{
- complete_entry_t *i=first_entry, *prev;
-
- while( i )
- {
- prev = i;
- i=i->next;
- complete_free_entry( prev );
- }
- first_entry = 0;
-
- completion_autoloader.unload_all();
-
-}
-
-/**
- The init function for the completion code. Currently, all it really
- does is make sure complete_destroy is called on exit.
+ The init function for the completion code. Does nothing.
*/
static void complete_init()
{
- static int is_init = 0;
- if( !is_init )
- {
- is_init = 1;
- halloc_register_function_void( global_context, &complete_destroy );
- }
}
/**