From 281644b4c1011950380f587b5cf6a68f09b86042 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Sun, 27 Mar 2011 06:51:28 +0000 Subject: [PATCH] remove unused mouse event and redundant checks git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67316 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/window.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index b54478de79..183b06b2c7 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -1612,11 +1612,7 @@ window_scroll_event_hscrollbar(GtkWidget*, GdkEventScroll* gdk_event, wxWindow* return false; } - wxMouseEvent event(wxEVT_MOUSEWHEEL); - InitMouseEvent(win, event, gdk_event); - GtkRange *range = win->m_scrollBar[wxWindow::ScrollDir_Horz]; - if (!range) return FALSE; if (range && gtk_widget_get_visible(GTK_WIDGET(range))) { @@ -1659,7 +1655,6 @@ window_scroll_event(GtkWidget*, GdkEventScroll* gdk_event, wxWindow* win) return TRUE; GtkRange *range = win->m_scrollBar[wxWindow::ScrollDir_Vert]; - if (!range) return FALSE; if (range && gtk_widget_get_visible(GTK_WIDGET(range))) {