]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove debug logging
authorAlan Third <alan@idiocy.org>
Thu, 28 Oct 2021 10:21:00 +0000 (11:21 +0100)
committerAlan Third <alan@idiocy.org>
Sat, 29 Jan 2022 12:15:39 +0000 (12:15 +0000)
* src/nsterm.m ([EmacsView copyRect:to:]): Remove logging as it's no
longer required.

src/nsterm.m

index 08bec519dbca434e4d3fef5bec1d263564d0acc0..40540c47be14b570fd952772b8ba1652ea6713fa 100644 (file)
@@ -7892,25 +7892,6 @@ not_in_argv (NSString *arg)
 
   NSRect dstRect = NSMakeRect (dest.x, dest.y, NSWidth (srcRect),
                                NSHeight (srcRect));
-  NSRect frame = [self frame];
-
-  /* TODO: This check is an attempt to debug a rare graphical glitch
-     on macOS and should be removed before the Emacs 28 release.  */
-  if (!NSContainsRect (frame, srcRect)
-      || !NSContainsRect (frame, dstRect))
-    {
-      NSLog (@"[EmacsView copyRect:to:] Attempting to copy to or "
-             "from an area outside the graphics buffer.");
-      NSLog (@"  Frame: (%f, %f) %f×%f",
-             NSMinX (frame), NSMinY (frame),
-             NSWidth (frame), NSHeight (frame));
-      NSLog (@"  Source: (%f, %f) %f×%f",
-             NSMinX (srcRect), NSMinY (srcRect),
-             NSWidth (srcRect), NSHeight (srcRect));
-      NSLog (@"  Destination: (%f, %f) %f×%f",
-             NSMinX (dstRect), NSMinY (dstRect),
-             NSWidth (dstRect), NSHeight (dstRect));
-    }
 
 #ifdef NS_IMPL_COCOA
   if ([self wantsLayer])