[vinagre/gnome-3-8] Revert "implement recognize_file() in SPICE plugin"



commit 45eeda2bf4e7e3428009f5016c25603bd64917fc
Author: David King <amigadave amigadave com>
Date:   Tue Jul 23 15:27:19 2013 +0100

    Revert "implement recognize_file() in SPICE plugin"
    
    This reverts commit 2a009fd29841ae47165fb62c6f502b95f7952c35.

 plugins/spice/vinagre-spice-plugin.c |   16 ----------------
 1 files changed, 0 insertions(+), 16 deletions(-)
---
diff --git a/plugins/spice/vinagre-spice-plugin.c b/plugins/spice/vinagre-spice-plugin.c
index 87377ef..da0d885 100644
--- a/plugins/spice/vinagre-spice-plugin.c
+++ b/plugins/spice/vinagre-spice-plugin.c
@@ -151,21 +151,6 @@ impl_new_connection_from_file (VinagreProtocol *plugin,
 
 }
 
-static gboolean
-impl_recognize_file (VinagreProtocol *plugin, GFile *file)
-{
-  gboolean result = FALSE;
-  gchar *filename = g_file_get_basename (file);
-
-  if (filename)
-    {
-      result = g_str_has_suffix (filename, ".spice");
-      g_free (filename);
-    }
-
-  return result;
-}
-
 static gchar **
 impl_get_public_description (VinagreProtocol *plugin)
 {
@@ -351,7 +336,6 @@ vinagre_spice_protocol_iface_init (VinagreProtocolInterface *iface)
   iface->new_connection = impl_new_connection;
   iface->new_tab = impl_new_tab;
   iface->new_connection_from_file = impl_new_connection_from_file;
-  iface->recognize_file = impl_recognize_file;
 }
 
 static void


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