[gnome-panel] toplevel: remove unused variables



commit e699ec28cbd7bd754b4004a90b200652da69f2c8
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sun Mar 8 15:56:24 2020 +0200

    toplevel: remove unused variables
    
    screen_width and screen_height is not used in update_expanded_position.

 gnome-panel/panel-toplevel.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/gnome-panel/panel-toplevel.c b/gnome-panel/panel-toplevel.c
index 880c8e676..5f043ab10 100644
--- a/gnome-panel/panel-toplevel.c
+++ b/gnome-panel/panel-toplevel.c
@@ -1899,7 +1899,6 @@ panel_toplevel_update_expanded_position (PanelToplevel *toplevel)
 {
        GdkScreen *screen;
        int        monitor_width, monitor_height;
-       int        screen_width, screen_height;
        int        monitor_x, monitor_y;
        int        x, y;
        int        x_right, y_bottom;
@@ -1908,9 +1907,7 @@ panel_toplevel_update_expanded_position (PanelToplevel *toplevel)
        if (!toplevel->priv->expand)
                return;
 
-       screen = panel_toplevel_get_screen_geometry (toplevel,
-                                                    &screen_width,
-                                                    &screen_height);
+       screen = gtk_window_get_screen (GTK_WINDOW (toplevel));
 
        panel_toplevel_get_monitor_geometry (toplevel, &monitor_x, &monitor_y,
                                             &monitor_width, &monitor_height);


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