/soc/2013/ankitkv/gobjectification: 7a83a1a657e3: Removed unused...

Ankit Vani a at nevitus.org
Wed Sep 4 11:36:09 EDT 2013


Changeset: 7a83a1a657e39555d45dc45e471eeb5927659721
Author:	 Ankit Vani <a at nevitus.org>
Date:	 2013-09-04 21:05 +0530
Branch:	 soc.2013.gobjectification.plugins
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/7a83a1a657e3

Description:

Removed unused declaration of purple_buddy_icon_spec_free()

diffstat:

 libpurple/buddyicon.h |  7 -------
 libpurple/protocol.c  |  2 +-
 2 files changed, 1 insertions(+), 8 deletions(-)

diffs (29 lines):

diff --git a/libpurple/buddyicon.h b/libpurple/buddyicon.h
--- a/libpurple/buddyicon.h
+++ b/libpurple/buddyicon.h
@@ -443,13 +443,6 @@ PurpleBuddyIconSpec *purple_buddy_icon_s
 		PurpleIconScaleRules scale_rules);
 
 /**
- * Frees a #PurpleBuddyIconSpec instance.
- *
- * @param icon_spec  The icon spec to destroy.
- */
-void purple_buddy_icon_spec_free(PurpleBuddyIconSpec *icon_spec);
-
-/**
  * Gets display size for a buddy icon
  */
 void purple_buddy_icon_spec_get_scaled_size(PurpleBuddyIconSpec *spec,
diff --git a/libpurple/protocol.c b/libpurple/protocol.c
--- a/libpurple/protocol.c
+++ b/libpurple/protocol.c
@@ -117,7 +117,7 @@ icon_spec_free(PurpleProtocol *protocol)
 {
 	g_return_if_fail(protocol != NULL);
 
-	purple_buddy_icon_spec_free(protocol->icon_spec);
+	g_free(protocol->icon_spec);
 	protocol->icon_spec = NULL;
 }
 



More information about the Commits mailing list