summaryrefslogtreecommitdiff
path: root/applets/inhibit
diff options
context:
space:
mode:
authorMonsta <[email protected]>2015-12-13 20:36:22 +0300
committerMonsta <[email protected]>2015-12-13 20:36:22 +0300
commit6c5989a7646419b05c387ca2d46ca27310b27494 (patch)
tree8c1053404080611ca8c2358fb16b5da07fec3f6f /applets/inhibit
parentc93d8d867ad5268e14a8d5882755dbf852fb834a (diff)
downloadmate-power-manager-6c5989a7646419b05c387ca2d46ca27310b27494.tar.bz2
mate-power-manager-6c5989a7646419b05c387ca2d46ca27310b27494.tar.xz
remove dead code
Diffstat (limited to 'applets/inhibit')
-rw-r--r--applets/inhibit/inhibit-applet.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/applets/inhibit/inhibit-applet.c b/applets/inhibit/inhibit-applet.c
index b2d1e92..1a8bbb1 100644
--- a/applets/inhibit/inhibit-applet.c
+++ b/applets/inhibit/inhibit-applet.c
@@ -165,37 +165,6 @@ gpm_applet_uninhibit (GpmInhibitApplet *applet,
return ret;
}
-#if 0
-static gboolean
-gpm_applet_has_inhibit (GpmInhibitApplet *applet,
- gboolean *has_inhibit)
-{
- GError *error = NULL;
- gboolean ret;
- DBusGProxy *proxy;
-
- proxy = egg_dbus_proxy_get_proxy (applet->gproxy);
- if (proxy == NULL) {
- g_warning ("not connected");
- return FALSE;
- }
-
- ret = dbus_g_proxy_call (proxy, "HasInhibit", &error,
- G_TYPE_INVALID,
- G_TYPE_BOOLEAN, has_inhibit,
- G_TYPE_INVALID);
- if (error) {
- g_debug ("ERROR: %s", error->message);
- g_error_free (error);
- }
- if (!ret) {
- /* abort as the DBUS method failed */
- g_warning ("HasInhibit failed!");
- }
-
- return ret;
-}
-#endif
/**
* gpm_applet_get_icon: