empathy r1988 - trunk/libempathy-gtk



Author: xclaesse
Date: Tue Dec 16 09:24:19 2008
New Revision: 1988
URL: http://svn.gnome.org/viewvc/empathy?rev=1988&view=rev

Log:
Remove useless virtual methods

Modified:
   trunk/libempathy-gtk/empathy-chat-view.c
   trunk/libempathy-gtk/empathy-chat-view.h

Modified: trunk/libempathy-gtk/empathy-chat-view.c
==============================================================================
--- trunk/libempathy-gtk/empathy-chat-view.c	(original)
+++ trunk/libempathy-gtk/empathy-chat-view.c	Tue Dec 16 09:24:19 2008
@@ -60,16 +60,6 @@
 }
 
 void
-empathy_chat_view_scroll_down (EmpathyChatView *view)
-{
-	g_return_if_fail (EMPATHY_IS_CHAT_VIEW (view));
-	
-	if (EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->scroll_down) {
-		EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->scroll_down (view);
-	}
-}
-
-void
 empathy_chat_view_append_message (EmpathyChatView *view,
 				  EmpathyMessage  *msg)
 {
@@ -105,6 +95,16 @@
 	}
 }
 
+void
+empathy_chat_view_scroll_down (EmpathyChatView *view)
+{
+	g_return_if_fail (EMPATHY_IS_CHAT_VIEW (view));
+	
+	if (EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->scroll_down) {
+		EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->scroll_down (view);
+	}
+}
+
 gboolean
 empathy_chat_view_get_has_selection (EmpathyChatView *view)
 {
@@ -194,68 +194,3 @@
 	}
 }
 
-EmpathyTheme *
-empathy_chat_view_get_theme (EmpathyChatView *view)
-{
-	g_return_val_if_fail (EMPATHY_IS_CHAT_VIEW (view), NULL);
-	
-	if (EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->get_theme) {
-		return EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->get_theme (view);
-	}
-	return NULL;
-}
-
-void
-empathy_chat_view_set_theme (EmpathyChatView *view, EmpathyTheme *theme)
-{
-	g_return_if_fail (EMPATHY_IS_CHAT_VIEW (view));
-	
-	if (EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->set_theme) {
-		EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->set_theme (view, theme);
-	}
-}
-
-void
-empathy_chat_view_set_margin (EmpathyChatView *view,
-			      gint            margin)
-{
-	g_return_if_fail (EMPATHY_IS_CHAT_VIEW (view));
-	
-	if (EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->set_margin) {
-		EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->set_margin (view, margin);
-	}
-}
-
-time_t
-empathy_chat_view_get_last_timestamp (EmpathyChatView *view)
-{
-	g_return_val_if_fail (EMPATHY_IS_CHAT_VIEW (view), 0);
-	
-	if (EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->get_last_timestamp) {
-		return EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->get_last_timestamp (view);
-	}
-	return 0;
-}
-
-void
-empathy_chat_view_set_last_timestamp (EmpathyChatView *view,
-				      time_t          timestamp)
-{
-	g_return_if_fail (EMPATHY_IS_CHAT_VIEW (view));
-	
-	if (EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->set_last_timestamp) {
-		EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->set_last_timestamp (view, timestamp);
-	}
-}
-
-EmpathyContact *
-empathy_chat_view_get_last_contact (EmpathyChatView *view)
-{
-	g_return_val_if_fail (EMPATHY_IS_CHAT_VIEW (view), NULL);
-	
-	if (EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->get_last_contact) {
-		return EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->get_last_contact (view);
-	}
-	return NULL;
-}
-

Modified: trunk/libempathy-gtk/empathy-chat-view.h
==============================================================================
--- trunk/libempathy-gtk/empathy-chat-view.h	(original)
+++ trunk/libempathy-gtk/empathy-chat-view.h	Tue Dec 16 09:24:19 2008
@@ -48,8 +48,6 @@
 						  EmpathyMessage  *msg);
 	void             (*append_event)         (EmpathyChatView *view,
 						  const gchar     *str);
-	void             (*set_margin)           (EmpathyChatView *view,
-						  gint             margin);
 	void             (*scroll)               (EmpathyChatView *view,
 						  gboolean         allow_scrolling);
 	void             (*scroll_down)          (EmpathyChatView *view);
@@ -68,14 +66,6 @@
 	void             (*highlight)            (EmpathyChatView *view,
 						  const gchar     *text);
 	void             (*copy_clipboard)       (EmpathyChatView *view);
-	EmpathyTheme *   (*get_theme)            (EmpathyChatView *view);
-	void             (*set_theme)            (EmpathyChatView *view,
-						  EmpathyTheme    *theme);
-	time_t           (*get_last_timestamp)   (EmpathyChatView *view);
-	void             (*set_last_timestamp)   (EmpathyChatView *view,
-						  time_t           timestamp);
-	EmpathyContact * (*get_last_contact)     (EmpathyChatView *view);
-
 };
 
 GType            empathy_chat_view_get_type             (void) G_GNUC_CONST;
@@ -101,15 +91,6 @@
 void             empathy_chat_view_highlight            (EmpathyChatView *view,
 							 const gchar     *text);
 void             empathy_chat_view_copy_clipboard       (EmpathyChatView *view);
-EmpathyTheme *   empathy_chat_view_get_theme            (EmpathyChatView *view);
-void             empathy_chat_view_set_theme            (EmpathyChatView *view,
-							 EmpathyTheme    *theme);
-void             empathy_chat_view_set_margin           (EmpathyChatView *view,
-							 gint             margin);
-time_t           empathy_chat_view_get_last_timestamp   (EmpathyChatView *view);
-void             empathy_chat_view_set_last_timestamp   (EmpathyChatView *view,
-							 time_t           timestamp);
-EmpathyContact * empathy_chat_view_get_last_contact     (EmpathyChatView *view);
 
 G_END_DECLS
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]