diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2020-05-08 10:49:20 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2020-05-08 10:51:30 +0200 |
commit | 88bef0b1b127f67149060fe36757940379d7f4a3 (patch) | |
tree | 0f71e6a7c1b6c322013d78eb0f48aa753cd246af /src/core/hook | |
parent | b7765ed9606f17e83ccd9e6aa96a1ca88294952e (diff) | |
download | weechat-88bef0b1b127f67149060fe36757940379d7f4a3.zip |
core: rename functions hook_completion_{get_string|list_add} to completion_{get_string|list_add}
Old functions are kept for compatibility reasons.
Diffstat (limited to 'src/core/hook')
-rw-r--r-- | src/core/hook/wee-hook-completion.c | 23 | ||||
-rw-r--r-- | src/core/hook/wee-hook-completion.h | 5 |
2 files changed, 0 insertions, 28 deletions
diff --git a/src/core/hook/wee-hook-completion.c b/src/core/hook/wee-hook-completion.c index 2562baa1a..8a8827f19 100644 --- a/src/core/hook/wee-hook-completion.c +++ b/src/core/hook/wee-hook-completion.c @@ -83,29 +83,6 @@ hook_completion (struct t_weechat_plugin *plugin, const char *completion_item, } /* - * Gets a completion property as string. - */ - -const char * -hook_completion_get_string (struct t_gui_completion *completion, - const char *property) -{ - return gui_completion_get_string (completion, property); -} - -/* - * Adds a word for a completion. - */ - -void -hook_completion_list_add (struct t_gui_completion *completion, - const char *word, int nick_completion, - const char *where) -{ - gui_completion_list_add (completion, word, nick_completion, where); -} - -/* * Executes a completion hook. */ diff --git a/src/core/hook/wee-hook-completion.h b/src/core/hook/wee-hook-completion.h index 4252bd14c..91a56ffae 100644 --- a/src/core/hook/wee-hook-completion.h +++ b/src/core/hook/wee-hook-completion.h @@ -45,11 +45,6 @@ extern struct t_hook *hook_completion (struct t_weechat_plugin *plugin, t_hook_callback_completion *callback, const void *callback_pointer, void *callback_data); -extern const char *hook_completion_get_string (struct t_gui_completion *completion, - const char *property); -extern void hook_completion_list_add (struct t_gui_completion *completion, - const char *word, int nick_completion, - const char *where); extern void hook_completion_exec (struct t_weechat_plugin *plugin, const char *completion_item, struct t_gui_buffer *buffer, |