macos: remove dead code
authorArjan Molenaar <gaphor@gmail.com>
Sat, 21 Jan 2023 14:22:13 +0000 (15:22 +0100)
committerArjan Molenaar <gaphor@gmail.com>
Sat, 21 Jan 2023 14:22:13 +0000 (15:22 +0100)
gdk/macos/gdkmacosdisplay-translate.c

index f6d4a23991badeefab2582b41075fb7c2ea66a6a..b88ed281ac742d457510ece02fec733ef10bc8cb 100644 (file)
@@ -1104,16 +1104,12 @@ find_surface_for_ns_event (GdkMacosDisplay *self,
   GdkMacosBaseView *view;
   GdkSurface *surface;
   NSPoint point;
-  int x_tmp;
-  int y_tmp;
 
   g_assert (GDK_IS_MACOS_DISPLAY (self));
   g_assert (nsevent != NULL);
   g_assert (x != NULL);
   g_assert (y != NULL);
 
-  _gdk_macos_display_from_display_coords (self, point.x, point.y, &x_tmp, &y_tmp);
-
   switch ((int)[nsevent type])
     {
     case NSEventTypeLeftMouseDown: