/soc/2013/ankitkv/gobjectification: 4f3fb841c618: Removed get_ke...

Ankit Vani a at nevitus.org
Fri Jun 14 13:19:47 EDT 2013


Changeset: 4f3fb841c61850c4e4396009c413e649927e9dd9
Author:	 Ankit Vani <a at nevitus.org>
Date:	 2013-06-14 22:49 +0530
Branch:	 soc.2013.gobjectification
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/4f3fb841c618

Description:

Removed get_key_len from rc4

diffstat:

 libpurple/ciphers/rc4.c |  12 ------------
 1 files changed, 0 insertions(+), 12 deletions(-)

diffs (29 lines):

diff --git a/libpurple/ciphers/rc4.c b/libpurple/ciphers/rc4.c
--- a/libpurple/ciphers/rc4.c
+++ b/libpurple/ciphers/rc4.c
@@ -92,17 +92,6 @@ purple_rc4_cipher_set_key(PurpleCipher *
 	g_object_notify(G_OBJECT(rc4_cipher), "key");
 }
 
-
-static size_t
-purple_rc4_cipher_get_key_size(PurpleCipher *cipher)
-{
-	PurpleRC4Cipher *rc4_cipher = PURPLE_RC4_CIPHER(cipher);
-	PurpleRC4CipherPrivate *priv = PURPLE_RC4_CIPHER_GET_PRIVATE(rc4_cipher);
-
-	return priv->key_len;
-}
-
-
 static ssize_t
 purple_rc4_cipher_encrypt(PurpleCipher *cipher, const guchar input[], size_t in_len,
 							guchar output[], size_t out_size)
@@ -197,7 +186,6 @@ purple_rc4_cipher_class_init(PurpleRC4Ci
 	cipher_class->reset = purple_rc4_cipher_reset;
 	cipher_class->encrypt = purple_rc4_cipher_encrypt;
 	cipher_class->set_key = purple_rc4_cipher_set_key;
-	cipher_class->get_key_size = purple_rc4_cipher_get_key_size;
 	cipher_class->get_name = purple_rc4_cipher_get_name;
 
 	pspec = g_param_spec_int("key_len", "key_len", "key_len",



More information about the Commits mailing list