Remove an unused function - cleanup after 680a2ee67.
authorAndrej Kacian <ticho@claws-mail.org>
Fri, 21 Apr 2017 16:02:38 +0000 (18:02 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Fri, 21 Apr 2017 16:02:38 +0000 (18:02 +0200)
src/ssl_manager.c

index fb6c4c5642d602f858c078df787c286250b95b96..623d2f9005ac93138be9761b1fa80be5736ed346 100644 (file)
@@ -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);