From a5ad89dd65b10e737d3f659a557d3e29393fc1d0 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Wed, 31 Dec 2014 22:46:48 -0800 Subject: [PATCH] frames: Remove last_motion_frame Nothing cares about it. --- src/ui/frames.c | 5 ----- src/ui/frames.h | 1 - 2 files changed, 6 deletions(-) diff --git a/src/ui/frames.c b/src/ui/frames.c index 32f172b52..8f64b1b59 100644 --- a/src/ui/frames.c +++ b/src/ui/frames.c @@ -557,9 +557,6 @@ meta_ui_frame_unmanage (MetaUIFrame *frame) gdk_window_set_user_data (frame->window, NULL); - if (frames->last_motion_frame == frame) - frames->last_motion_frame = NULL; - g_hash_table_remove (frames->frames, &frame->xwindow); meta_style_info_unref (frame->style_info); @@ -1389,8 +1386,6 @@ meta_frames_motion_notify_event (GtkWidget *widget, if (frame == NULL) return FALSE; - frames->last_motion_frame = frame; - control = get_control (frame, event->x, event->y); if (frame->button_state == META_BUTTON_STATE_PRESSED) diff --git a/src/ui/frames.h b/src/ui/frames.h index fda229760..66c72a01e 100644 --- a/src/ui/frames.h +++ b/src/ui/frames.h @@ -96,7 +96,6 @@ struct _MetaFrames GHashTable *text_heights; GHashTable *frames; - MetaUIFrame *last_motion_frame; MetaStyleInfo *normal_style; GHashTable *style_variants;