[empathy: 3/8] Removed empathy_tp_file_close as it was a duplicate of _cancel.



commit 18e765fd857e0767aa43b4c6dc459c4a49216e18
Author: Jonny Lamb <jonny lamb collabora co uk>
Date:   Fri Apr 24 22:36:11 2009 +0100

    Removed empathy_tp_file_close as it was a duplicate of _cancel.
    
    Signed-off-by: Jonny Lamb <jonny lamb collabora co uk>
---
 libempathy/empathy-tp-file.c |    8 +-------
 libempathy/empathy-tp-file.h |    1 -
 src/empathy-ft-manager.c     |    2 +-
 3 files changed, 2 insertions(+), 9 deletions(-)

diff --git a/libempathy/empathy-tp-file.c b/libempathy/empathy-tp-file.c
index 23f7c8c..a53bb23 100644
--- a/libempathy/empathy-tp-file.c
+++ b/libempathy/empathy-tp-file.c
@@ -585,7 +585,7 @@ tp_file_got_contact_cb (EmpathyTpContactFactory *factory,
   if (error)
     {
       DEBUG ("Error: %s", error->message);
-      empathy_tp_file_close (tp_file);
+      empathy_tp_file_cancel (tp_file);
       return;
     }
 
@@ -1162,12 +1162,6 @@ empathy_tp_file_cancel (EmpathyTpFile *tp_file)
     g_cancellable_cancel (tp_file->priv->cancellable);
 }
 
-void
-empathy_tp_file_close (EmpathyTpFile *tp_file)
-{
-  empathy_tp_file_cancel (tp_file);
-}
-
 /**
  * empathy_tp_file_is_ready:
  * @tp_file: an #EmpathyTpFile
diff --git a/libempathy/empathy-tp-file.h b/libempathy/empathy-tp-file.h
index 8f4b915..1d44431 100644
--- a/libempathy/empathy-tp-file.h
+++ b/libempathy/empathy-tp-file.h
@@ -69,7 +69,6 @@ TpChannel *empathy_tp_file_get_channel (EmpathyTpFile *tp_file);
 void empathy_tp_file_accept (EmpathyTpFile *tp_file, guint64 offset,
   GFile *gfile, GError **error);
 void empathy_tp_file_cancel (EmpathyTpFile *tp_file);
-void empathy_tp_file_close (EmpathyTpFile *tp_file);
 void empathy_tp_file_offer (EmpathyTpFile *tp_file, GFile *gfile,
   GError **error);
 
diff --git a/src/empathy-ft-manager.c b/src/empathy-ft-manager.c
index d3d22fb..87531f0 100644
--- a/src/empathy-ft-manager.c
+++ b/src/empathy-ft-manager.c
@@ -447,7 +447,7 @@ ft_manager_remove_file_from_model (EmpathyFTManager *ft_manager,
   if (update_selection)
     gtk_tree_selection_select_iter (selection, &iter);
 
-  empathy_tp_file_close (tp_file);
+  empathy_tp_file_cancel (tp_file);
 }
 
 static gboolean



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