talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 9bc2a70b66eb2ccf35d33273c0c5b3bc4a30e5ff
parent 680a2ee6756139a32755a09edc77472147f8e64b
Author: Andrej Kacian <ticho@claws-mail.org>
Date:   Fri, 21 Apr 2017 18:02:38 +0200

Remove an unused function - cleanup after 680a2ee67.

Diffstat:
Msrc/ssl_manager.c | 21---------------------
1 file changed, 0 insertions(+), 21 deletions(-)

diff --git a/src/ssl_manager.c b/src/ssl_manager.c @@ -232,27 +232,6 @@ static gboolean get_serverport(const gchar *str, gchar **server, gchar **port) return FALSE; } -static char *get_port(const char *str) -{ - const char *pos, *prevpos; - char *port; - - g_return_val_if_fail(str != NULL, NULL); - - /* Iterate through all '.'-separated chunks, and the last one - * before the .cert or .cert.chain suffix is the port number. */ - for (prevpos = str, pos = strstr(str, ".") + 1; - pos != NULL; - prevpos = pos, pos = strstr(pos, ".") + 1) { - if (!strcmp(pos, "cert") || !strcmp(pos, "cert.chain")) { - port = strndup(prevpos, pos - prevpos - 1); - return port; - } - } - - return NULL; -} - static char *get_fingerprint(const char *str) { char *ret = NULL, *tmp = g_strdup(str);