[gnome-panel] xstuff: remove unused function



commit c15dfd130e90c6c16724a1f3fa4646ef6a7e1ea9
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Wed Sep 21 18:00:58 2016 +0300

    xstuff: remove unused function

 gnome-panel/xstuff.c |    9 ---------
 gnome-panel/xstuff.h |    2 --
 2 files changed, 0 insertions(+), 11 deletions(-)
---
diff --git a/gnome-panel/xstuff.c b/gnome-panel/xstuff.c
index c0275a5..f7b3892 100644
--- a/gnome-panel/xstuff.c
+++ b/gnome-panel/xstuff.c
@@ -27,7 +27,6 @@
 
 static int (* xstuff_old_xio_error_handler) (Display *) = NULL;
 static int (* xstuff_old_x_error_handler)   (Display *, XErrorEvent *);
-static gboolean xstuff_display_is_dead = FALSE;
 
 /* Zoom animation */
 #define MINIATURIZE_ANIMATION_FRAMES_Z   1
@@ -381,20 +380,12 @@ xstuff_zoom_animate (GtkWidget *widget,
 static int
 xstuff_xio_error_handler (Display *display)
 {
-       xstuff_display_is_dead = TRUE;
-
        if (xstuff_old_xio_error_handler)
                return xstuff_old_xio_error_handler (display);
 
        return 0;
 }
 
-gboolean
-xstuff_is_display_dead (void)
-{
-       return xstuff_display_is_dead;
-}
-
 static int
 xstuff_x_error_handler (Display *display, XErrorEvent *error)
 {
diff --git a/gnome-panel/xstuff.h b/gnome-panel/xstuff.h
index 507a1dd..016ed99 100644
--- a/gnome-panel/xstuff.h
+++ b/gnome-panel/xstuff.h
@@ -9,8 +9,6 @@ void xstuff_zoom_animate                (GtkWidget        *widget,
                                         PanelOrientation  orientation,
                                         GdkRectangle     *opt_src_rect);
 
-gboolean xstuff_is_display_dead         (void);
-
 void xstuff_init                        (void);
 
 #endif /* __XSTUFF_H__ */


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