[Xfce4-commits] <xfce4-session:master> Remove no longer needed xfsm_dbus_name_has_owner function.

Jérôme Guelfucci noreply at xfce.org
Sat Feb 27 00:36:08 CET 2010


Updating branch refs/heads/master
         to c1047579c461257c674ced0ae50d1e5a013b9c6e (commit)
       from 3bc41bcdd9c8d502f74df0abb8efeb7d18b6ac41 (commit)

commit c1047579c461257c674ced0ae50d1e5a013b9c6e
Author: Ali Abdallah <aliov at xfce.org>
Date:   Wed Feb 3 11:09:23 2010 +0100

    Remove no longer needed xfsm_dbus_name_has_owner function.

 xfce4-session/xfsm-global.c |   28 ----------------------------
 xfce4-session/xfsm-global.h |    3 ---
 2 files changed, 0 insertions(+), 31 deletions(-)

diff --git a/xfce4-session/xfsm-global.c b/xfce4-session/xfsm-global.c
index 649535a..c213482 100644
--- a/xfce4-session/xfsm-global.c
+++ b/xfce4-session/xfsm-global.c
@@ -187,31 +187,3 @@ xfsm_g_value_free (GValue *value)
     }
 }
 
-/**
- * xfsm_dbus_name_has_owner:
- * @bus: a #DBusConnection of type DBUS_BUS_SYSTEM to ask the system bus 
- *       or DBUS_BUS_SESSION to ask the session bus of a name. 
- * @name: a valid bus name
- *
- *
- * Returns: FALSE if no owner was found, TRUE otherwise
- **/
-gboolean
-xfsm_dbus_name_has_owner (DBusConnection *bus, const gchar *name)
-{
-  DBusError error;
-  gboolean ret;
-  
-  dbus_error_init (&error);
-  
-  ret = dbus_bus_name_has_owner (bus, name, &error);
-    
-  if ( dbus_error_is_set (&error) )
-    {
-      g_warning ("dbus_bus_name_has_owner failed : %s", error.message);
-      dbus_error_free (&error);
-      return FALSE;
-    }
-  
-  return ret;
-}
diff --git a/xfce4-session/xfsm-global.h b/xfce4-session/xfsm-global.h
index 5e4609c..08adfef 100644
--- a/xfce4-session/xfsm-global.h
+++ b/xfce4-session/xfsm-global.h
@@ -84,7 +84,4 @@ GdkPixbuf *xfsm_load_session_preview (const gchar *name);
 GValue *xfsm_g_value_new (GType gtype);
 void    xfsm_g_value_free (GValue *value);
 
-gboolean xfsm_dbus_name_has_owner (DBusConnection *bus,
-				   const gchar *name);
-
 #endif /* !__XFSM_GLOBAL_H__ */



More information about the Xfce4-commits mailing list