summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-03-30 02:18:49 +0100
committerraveit65 <[email protected]>2022-07-19 23:16:23 +0200
commitf76e68f68f0788747b98925707b0c37d9fa99396 (patch)
tree72486848d32954f6c6ed9b74c1bc11f949ea2bff /src
parentfab059e8cdfb57112dac5b54492ff33fcbbdb62d (diff)
downloadcaja-f76e68f68f0788747b98925707b0c37d9fa99396.tar.bz2
caja-f76e68f68f0788747b98925707b0c37d9fa99396.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')
-rw-r--r--src/file-manager/fm-desktop-icon-view.c12
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 01060fe5..11f60aa8 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.