/soc/2013/ankitkv/gobjectification: fcc35d976057: Removed unnece...

Ankit Vani a at nevitus.org
Wed Jun 26 16:01:48 EDT 2013


Changeset: fcc35d976057dabdb26cc7c29659fa7cbcf87c63
Author:	 Ankit Vani <a at nevitus.org>
Date:	 2013-06-27 01:17 +0530
Branch:	 soc.2013.gobjectification
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/fcc35d976057

Description:

Removed unnecessary class init for PurpleCipher

diffstat:

 libpurple/cipher.c |  24 +-----------------------
 1 files changed, 1 insertions(+), 23 deletions(-)

diffs (41 lines):

diff --git a/libpurple/cipher.c b/libpurple/cipher.c
--- a/libpurple/cipher.c
+++ b/libpurple/cipher.c
@@ -23,28 +23,6 @@
 #include "debug.h"
 
 /******************************************************************************
- * Object Stuff
- *****************************************************************************/
-static void
-purple_cipher_class_init(PurpleCipherClass *klass) {
-	klass->reset = NULL;
-	klass->reset_state = NULL;
-	klass->set_iv = NULL;
-	klass->append = NULL;
-	klass->digest = NULL;
-	klass->get_digest_size = NULL;
-	klass->encrypt = NULL;
-	klass->decrypt = NULL;
-	klass->set_salt = NULL;
-	klass->set_key = NULL;
-	klass->get_key_size = NULL;
-	klass->set_batch_mode = NULL;
-	klass->get_batch_mode = NULL;
-	klass->get_block_size = NULL;
-	klass->get_name = NULL;
-}
-
-/******************************************************************************
  * PurpleCipher API
  *****************************************************************************/
 const gchar *
@@ -69,7 +47,7 @@ purple_cipher_get_type(void) {
 			sizeof(PurpleCipherClass),
 			NULL,
 			NULL,
-			(GClassInitFunc)purple_cipher_class_init,
+			NULL,
 			NULL,
 			NULL,
 			sizeof(PurpleCipher),



More information about the Commits mailing list