From 6c5989a7646419b05c387ca2d46ca27310b27494 Mon Sep 17 00:00:00 2001 From: Monsta Date: Sun, 13 Dec 2015 20:36:22 +0300 Subject: remove dead code --- applets/inhibit/inhibit-applet.c | 31 ------------------------------- src/gsd-media-keys-window.c | 34 ---------------------------------- 2 files changed, 65 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: diff --git a/src/gsd-media-keys-window.c b/src/gsd-media-keys-window.c index 67d2402..63f93a5 100644 --- a/src/gsd-media-keys-window.c +++ b/src/gsd-media-keys-window.c @@ -471,19 +471,6 @@ draw_action_volume (MsdMediaKeysWindow *window, volume_box_x0 = round (icon_box_x0); volume_box_y0 = round (icon_box_height + icon_box_y0); -#if 0 - g_message ("icon box: w=%f h=%f _x0=%f _y0=%f", - icon_box_width, - icon_box_height, - icon_box_x0, - icon_box_y0); - g_message ("volume box: w=%f h=%f _x0=%f _y0=%f", - volume_box_width, - volume_box_height, - volume_box_x0, - volume_box_y0); -#endif - res = render_speaker (window, cr, icon_box_x0, icon_box_y0, @@ -499,14 +486,6 @@ draw_action_volume (MsdMediaKeysWindow *window, speaker_cx = icon_box_x0 + speaker_width / 2; speaker_cy = icon_box_y0 + speaker_height / 2; -#if 0 - g_message ("speaker box: w=%f h=%f cx=%f cy=%f", - speaker_width, - speaker_height, - speaker_cx, - speaker_cy); -#endif - /* draw speaker symbol */ draw_speaker (cr, speaker_cx, speaker_cy, speaker_width, speaker_height); @@ -608,19 +587,6 @@ draw_action_custom (MsdMediaKeysWindow *window, bright_box_x0 = round (icon_box_x0); bright_box_y0 = round (icon_box_height + icon_box_y0); -#if 0 - g_message ("icon box: w=%f h=%f _x0=%f _y0=%f", - icon_box_width, - icon_box_height, - icon_box_x0, - icon_box_y0); - g_message ("brightness box: w=%f h=%f _x0=%f _y0=%f", - bright_box_width, - bright_box_height, - bright_box_x0, - bright_box_y0); -#endif - res = render_custom (window, cr, icon_box_x0, icon_box_y0, -- cgit v1.2.1