diff options
author | Pablo Barciela <[email protected]> | 2019-03-30 02:18:49 +0100 |
---|---|---|
committer | monsta <[email protected]> | 2019-07-23 16:17:13 +0300 |
commit | 3eaef9c555ce65fa2a01e60667ec819c237ffc46 (patch) | |
tree | 60b3e9e0fad0e6aee8e24ed7e3ebe59a5b144fc5 /src/file-manager/fm-desktop-icon-view.c | |
parent | 374757b8ff53c4e1a19827ccd04c1ac026e1e69e (diff) | |
download | caja-3eaef9c555ce65fa2a01e60667ec819c237ffc46.tar.bz2 caja-3eaef9c555ce65fa2a01e60667ec819c237ffc46.tar.xz |
fm-desktop-icon-view: remove dead code
Fixes Clang static analyzer warnings:
fm-desktop-icon-view.c:331:33: warning: 1st function call argument is an uninitialized value
if (pointer == NULL && (gdk_device_get_source (cur) == GDK_SOURCE_MOUSE)) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~
fm-desktop-icon-view.c:335:34: warning: 1st function call argument is an uninitialized value
if (keyboard == NULL && (gdk_device_get_source (cur) == GDK_SOURCE_KEYBOARD)) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~
Diffstat (limited to 'src/file-manager/fm-desktop-icon-view.c')
-rw-r--r-- | src/file-manager/fm-desktop-icon-view.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/file-manager/fm-desktop-icon-view.c b/src/file-manager/fm-desktop-icon-view.c index 8e8d7a79..9205edcf 100644 --- a/src/file-manager/fm-desktop-icon-view.c +++ b/src/file-manager/fm-desktop-icon-view.c @@ -319,7 +319,7 @@ fm_desktop_icon_view_handle_middle_click (CajaIconContainer *icon_container, FMDesktopIconView *desktop_icon_view) { XButtonEvent x_event; - GdkDevice *keyboard = NULL, *pointer = NULL, *cur; + GdkDevice *keyboard = NULL, *pointer = NULL; GdkSeat *seat; GdkDisplay *display; @@ -327,16 +327,6 @@ fm_desktop_icon_view_handle_middle_click (CajaIconContainer *icon_container, pointer = gdk_seat_get_pointer (seat); keyboard = gdk_seat_get_keyboard (seat); - { - if (pointer == NULL && (gdk_device_get_source (cur) == GDK_SOURCE_MOUSE)) { - pointer = cur; - } - - if (keyboard == NULL && (gdk_device_get_source (cur) == GDK_SOURCE_KEYBOARD)) { - keyboard = cur; - } - } - /* During a mouse click we have the pointer and keyboard grab. * We will send a fake event to the root window which will cause it * to try to get the grab so we need to let go ourselves. |