aboutsummaryrefslogtreecommitdiffhomepage
path: root/function.h
diff options
context:
space:
mode:
authorGravatar Sanne Wouda <sanne.wouda@gmail.com>2015-03-11 14:14:56 +0100
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2015-04-06 00:10:55 -0700
commit73f344f41bd20c005a0f5b810dc20229392f2bf8 (patch)
treeeadc9615a1f35dae8201e3d5232b60f40ff7d999 /function.h
parent9f8cec7f9e13f6a0cbf8e5e986c3dfbffac0be99 (diff)
Revert 1349d12 and properly fix #213
As suggested by @ridiculousfish, when removing autoloaded functions, add them to a tombstones set. These functions will never be autoloaded again in the current shell, not even when the timestamp changes. Tested as per comment 1 of #1033. `~/.config/fish/functions/ls.fish` contains the function definition. `function -e ls` removes the redefined `ls` (and reverts back to the built-in command). `touch .../ls.fish` does not cause the function to be reloaded.
Diffstat (limited to 'function.h')
-rw-r--r--function.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/function.h b/function.h
index 2f4fe8c5..ac56bd46 100644
--- a/function.h
+++ b/function.h
@@ -105,9 +105,6 @@ void function_init();
/** Add a function. definition_line_offset is the line number of the function's definition within its source file */
void function_add(const function_data_t &data, const parser_t &parser, int definition_line_offset = 0);
-/** Removes a function from our internal table, returning true if it was found and false if not */
-bool function_remove_ignore_autoload(const wcstring &name);
-
/**
Remove the function with the specified name.
*/