gobjectification: 1ea3fb9f: There's no need for an instance initiali...

qulogic at pidgin.im qulogic at pidgin.im
Sun Jul 11 04:05:43 EDT 2010


----------------------------------------------------------------------
Revision: 1ea3fb9f6bbdd9ed212710c61f806308ebb3d8ac
Parent:   b535fd36bd0ff9af5aeca20dfe2eaaa0c1803c70
Author:   qulogic at pidgin.im
Date:     07/11/10 01:23:15
Branch:   im.pidgin.gobjectification
URL: http://d.pidgin.im/viewmtn/revision/info/1ea3fb9f6bbdd9ed212710c61f806308ebb3d8ac

Changelog: 

There's no need for an instance initialization function here.

Changes against parent b535fd36bd0ff9af5aeca20dfe2eaaa0c1803c70

  patched  libpurple/cipher/md5hash.c

-------------- next part --------------
============================================================
--- libpurple/cipher/md5hash.c	62fd292033e114a6bf5c5e5bfd933b5531b8f1df
+++ libpurple/cipher/md5hash.c	95f88683577ae30ca8e22b76e254e788a6348b5e
@@ -298,17 +298,6 @@ purple_md5_hash_class_init(PurpleMD5Hash
 #endif
 }
 
-static void
-purple_md5_hash_init(PurpleHash *hash) {
-#if !GLIB_CHECK_VERSION(2,16,0)
-	PurpleMD5HashPrivate *priv = PURPLE_MD5_HASH_GET_PRIVATE(hash);
-
-	priv = g_new0(PurpleMD5HashPrivate, 1);
-
-	purple_md5_hash_reset(hash);
-#endif
-}
-
 /******************************************************************************
  * HMACFunction Stuff
  *****************************************************************************/
@@ -339,8 +328,8 @@ purple_md5_hash_get_gtype(void) {
 			NULL,
 			sizeof(PurpleMD5Hash),
 			0,
-			(GInstanceInitFunc)purple_md5_hash_init,
 			NULL,
+			NULL,
 		};
 		static const GInterfaceInfo hmac_info = {
 			(GInterfaceInitFunc)purple_md5_hash_hmac_function_init,


More information about the Commits mailing list