More work towards getting function.h off of shared_ptr

This commit is contained in:
ridiculousfish
2012-05-17 19:46:08 -07:00
parent 86645b32e1
commit da6295c428
4 changed files with 17 additions and 19 deletions

View File

@@ -986,14 +986,10 @@ void completer_t::complete_cmd_desc( const wcstring &str )
static wcstring complete_function_desc( const wcstring &fn )
{
wcstring result;
const wchar_t *res = function_get_desc( fn );
if (res) {
result = res;
} else {
bool has_description = function_get_desc(fn, &result);
if (! has_description) {
function_get_definition(fn, &result);
}
return result;
}