mirror of
https://github.com/weechat/weechat.git
synced 2026-06-29 22:36:38 +02:00
alias: remove unused function alias_get_final_command()
This commit is contained in:
@@ -636,39 +636,6 @@ alias_new (const char *name, const char *command, const char *completion)
|
||||
return new_alias;
|
||||
}
|
||||
|
||||
/*
|
||||
* Gets final command pointer by an alias.
|
||||
*/
|
||||
|
||||
char *
|
||||
alias_get_final_command (struct t_alias *alias)
|
||||
{
|
||||
struct t_alias *ptr_alias;
|
||||
char *result;
|
||||
|
||||
if (alias->running)
|
||||
{
|
||||
weechat_printf (NULL,
|
||||
_("%s%s: error, circular reference when calling "
|
||||
"alias \"%s\""),
|
||||
weechat_prefix ("error"), ALIAS_PLUGIN_NAME,
|
||||
alias->name);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
ptr_alias = alias_search ((weechat_string_is_command_char (alias->command)) ?
|
||||
weechat_utf8_next_char (alias->command) : alias->command);
|
||||
if (ptr_alias)
|
||||
{
|
||||
alias->running = 1;
|
||||
result = alias_get_final_command (ptr_alias);
|
||||
alias->running = 0;
|
||||
return result;
|
||||
}
|
||||
return (weechat_string_is_command_char (alias->command)) ?
|
||||
weechat_utf8_next_char (alias->command) : alias->command;
|
||||
}
|
||||
|
||||
/*
|
||||
* Callback for command "/alias": displays or creates alias.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user