diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2017-06-10 15:01:21 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2017-06-10 15:01:21 +0200 |
commit | 3af24d9739bb9f73337107f5b72b494efc4249e3 (patch) | |
tree | e948b11a36152b5bad68f1c590728b697df0a50a /src | |
parent | be4780559795685d126d69b5d79d31d95c36787f (diff) | |
download | weechat-3af24d9739bb9f73337107f5b72b494efc4249e3.zip |
core: remove unused function proxy_search_with_option_name (issue #1012)
Diffstat (limited to 'src')
-rw-r--r-- | src/core/wee-proxy.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/core/wee-proxy.c b/src/core/wee-proxy.c index 7cfd1edbc..57489daa3 100644 --- a/src/core/wee-proxy.c +++ b/src/core/wee-proxy.c @@ -152,39 +152,6 @@ proxy_search (const char *name) } /* - * Searches for a proxy by option name. - * - * Returns pointer to proxy found, NULL if not found. - */ - -struct t_proxy * -proxy_search_with_option_name (const char *option_name) -{ - char *proxy_name, *pos_option; - struct t_proxy *ptr_proxy; - - ptr_proxy = NULL; - - pos_option = strchr (option_name, '.'); - if (pos_option) - { - proxy_name = string_strndup (option_name, pos_option - option_name); - if (proxy_name) - { - for (ptr_proxy = weechat_proxies; ptr_proxy; - ptr_proxy = ptr_proxy->next_proxy) - { - if (strcmp (ptr_proxy->name, proxy_name) == 0) - break; - } - free (proxy_name); - } - } - - return ptr_proxy; -} - -/* * Sets name for a proxy. */ |