about summary refs log tree commit diff stats
path: root/src/jabber.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-01-21 22:08:05 +0000
committerJames Booth <boothj5@gmail.com>2013-01-21 22:08:05 +0000
commit7991bc5154430dcb15b06615c8f94e661d2cdb51 (patch)
treed9c0448518562ef918a49acda8c32542a65cc46e /src/jabber.c
parent745786434738a9626aa813028ae107f17a2197e2 (diff)
downloadprofani-tty-7991bc5154430dcb15b06615c8f94e661d2cdb51.tar.gz
Removed redundant function for computing sha1 caps hash
Diffstat (limited to 'src/jabber.c')
-rw-r--r--src/jabber.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/jabber.c b/src/jabber.c
index 3504cd9e..9dd2f414 100644
--- a/src/jabber.c
+++ b/src/jabber.c
@@ -186,32 +186,6 @@ jabber_disconnect(void)
 }
 
 char *
-jabber_get_local_sha1_caps_str(void)
-{
-/*
-    GString *str = g_string_new("");
-    unsigned char hash[SHA_DIGEST_LENGTH];
-
-    g_string_append(str, "client/pc//Profanity ");
-    g_string_append(str, PACKAGE_VERSION);
-    if (strcmp(PACKAGE_STATUS, "development") == 0) {
-        g_string_append(str, "dev");
-    }
-    g_string_append(str, "<");
-
-    SHA1((unsigned char *)str->str, strlen(str->str), hash);
-
-    char *result = g_base64_encode(hash, strlen((char *)hash));
-
-    g_string_free(str, TRUE);
-
-    return result;
-*/
-    return NULL;
-}
-
-
-char *
 sha1_caps_str(xmpp_stanza_t *query)
 {
     GSList *identities = NULL;