/soc/2013/ankitkv/gobjectification: 14b1a51816da: Removed unused...

Ankit Vani a at nevitus.org
Fri Jul 19 17:07:08 EDT 2013


Changeset: 14b1a51816da69257650b5fe1258df720fa93d7a
Author:	 Ankit Vani <a at nevitus.org>
Date:	 2013-07-20 02:36 +0530
Branch:	 soc.2013.gobjectification
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/14b1a51816da

Description:

Removed unused PurpleConversationPresence

diffstat:

 libpurple/plugins/perl/common/Presence.xs |   8 ----
 libpurple/plugins/perl/common/module.h    |   1 -
 libpurple/plugins/perl/common/typemap     |   1 -
 libpurple/presence.c                      |  12 -------
 libpurple/presence.h                      |  50 -------------------------------
 5 files changed, 0 insertions(+), 72 deletions(-)

diffs (150 lines):

diff --git a/libpurple/plugins/perl/common/Presence.xs b/libpurple/plugins/perl/common/Presence.xs
--- a/libpurple/plugins/perl/common/Presence.xs
+++ b/libpurple/plugins/perl/common/Presence.xs
@@ -12,10 +12,6 @@ Purple::Account
 purple_account_presence_get_account(presence)
 	Purple::AccountPresence presence
 
-Purple::Conversation
-purple_conversation_presence_get_conversation(presence)
-	Purple::ConversationPresence presence
-
 Purple::BuddyList::Buddy
 purple_buddy_presence_get_buddy(presence)
 	Purple::BuddyPresence presence
@@ -73,10 +69,6 @@ Purple::AccountPresence
 purple_account_presence_new(account)
 	Purple::Account account
 
-Purple::ConversationPresence
-purple_conversation_presence_new(conv)
-	Purple::Conversation conv
-
 Purple::BuddyPresence
 purple_buddy_presence_new(buddy)
 	Purple::BuddyList::Buddy buddy
diff --git a/libpurple/plugins/perl/common/module.h b/libpurple/plugins/perl/common/module.h
--- a/libpurple/plugins/perl/common/module.h
+++ b/libpurple/plugins/perl/common/module.h
@@ -227,7 +227,6 @@ typedef PurplePrefType			Purple__PrefTyp
 /* presence.h */
 typedef PurplePresence *		Purple__Presence;
 typedef PurpleAccountPresence *		Purple__AccountPresence;
-typedef PurpleConversationPresence *	Purple__ConversationPresence;
 typedef PurpleBuddyPresence *		Purple__BuddyPresence;
 
 /* proxy.h */
diff --git a/libpurple/plugins/perl/common/typemap b/libpurple/plugins/perl/common/typemap
--- a/libpurple/plugins/perl/common/typemap
+++ b/libpurple/plugins/perl/common/typemap
@@ -136,7 +136,6 @@ Purple::Ssl::Ops				T_PurpleObj
 
 Purple::Presence				T_PurpleObj
 Purple::AccountPresence				T_PurpleObj
-Purple::ConversationPresence			T_PurpleObj
 Purple::BuddyPresence				T_PurpleObj
 Purple::Smiley				T_PurpleObj
 Purple::Status				T_PurpleObj
diff --git a/libpurple/presence.c b/libpurple/presence.c
--- a/libpurple/presence.c
+++ b/libpurple/presence.c
@@ -32,12 +32,6 @@ typedef struct _PurplePresencePrivate  P
 /** @copydoc _PurpleAccountPresencePrivate */
 typedef struct _PurpleAccountPresencePrivate  PurpleAccountPresencePrivate;
 
-#define PURPLE_CONVERSATION_PRESENCE_GET_PRIVATE(obj) \
-	(G_TYPE_INSTANCE_GET_PRIVATE((obj), PURPLE_TYPE_CONVERSATION_PRESENCE, PurpleConversationPresencePrivate))
-
-/** @copydoc _PurpleConversationPresencePrivate */
-typedef struct _PurpleConversationPresencePrivate  PurpleConversationPresencePrivate;
-
 #define PURPLE_BUDDY_PRESENCE_GET_PRIVATE(obj) \
 	(G_TYPE_INSTANCE_GET_PRIVATE((obj), PURPLE_TYPE_BUDDY_PRESENCE, PurpleBuddyPresencePrivate))
 
@@ -63,12 +57,6 @@ struct _PurpleAccountPresencePrivate
 	PurpleAccount *account;
 };
 
-/** Private data for a conversation presence */
-struct _PurpleConversationPresencePrivate
-{
-	PurpleConversation *conv;
-};
-
 /** Private data for a buddy presence */
 struct _PurpleBuddyPresencePrivate
 {
diff --git a/libpurple/presence.h b/libpurple/presence.h
--- a/libpurple/presence.h
+++ b/libpurple/presence.h
@@ -38,11 +38,6 @@ typedef struct _PurpleAccountPresence  P
 /** @copydoc _PurpleAccountPresenceClass */
 typedef struct _PurpleAccountPresenceClass  PurpleAccountPresenceClass;
 
-/** @copydoc _PurpleConversationPresence */
-typedef struct _PurpleConversationPresence  PurpleConversationPresence;
-/** @copydoc _PurpleConversationPresenceClass */
-typedef struct _PurpleConversationPresenceClass  PurpleConversationPresenceClass;
-
 /** @copydoc _PurpleBuddyPresence */
 typedef struct _PurpleBuddyPresence  PurpleBuddyPresence;
 /** @copydoc _PurpleBuddyPresenceClass */
@@ -100,26 +95,6 @@ struct _PurpleAccountPresenceClass {
 };
 
 /**
- * A presence for a conversation
- */
-struct _PurpleConversationPresence
-{
-	/*< private >*/
-	PurplePresence parent;
-};
-
-/** Base class for all #PurpleConversationPresence's */
-struct _PurpleConversationPresenceClass {
-	/*< private >*/
-	PurplePresenceClass parent_class;
-
-	void (*_purple_reserved1)(void);
-	void (*_purple_reserved2)(void);
-	void (*_purple_reserved3)(void);
-	void (*_purple_reserved4)(void);
-};
-
-/**
  * A presence for a buddy
  */
 struct _PurpleBuddyPresence
@@ -167,31 +142,6 @@ PurpleAccount *purple_account_presence_g
 /*@}*/
 
 /**************************************************************************/
-/** @name PurpleConversationPresence API                                  */
-/**************************************************************************/
-/*@{*/
-
-/**
- * Creates a presence for a conversation.
- *
- * @param conv The conversation to associate with the presence.
- *
- * @return The new presence.
- */
-PurpleConversationPresence *purple_conversation_presence_new(PurpleConversation *conv);
-
-/**
- * Returns a conversation presence's conversation.
- *
- * @param presence The presence.
- *
- * @return The presence's conversation.
- */
-PurpleConversation *purple_conversation_presence_get_conversation(const PurpleConversationPresence *presence);
-
-/*@}*/
-
-/**************************************************************************/
 /** @name PurpleBuddyPresence API                                         */
 /**************************************************************************/
 /*@{*/



More information about the Commits mailing list