From 88959f55958070dd4cfa57ab0c6ce01a55792748 Mon Sep 17 00:00:00 2001 From: Patric Stout Date: Sun, 21 Feb 2021 15:58:26 +0100 Subject: Codechange: [OSX] remove final bits of old debugging code (#8714) --- src/video/cocoa/cocoa_v.mm | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'src/video/cocoa') diff --git a/src/video/cocoa/cocoa_v.mm b/src/video/cocoa/cocoa_v.mm index b174a3e8c..7baed796f 100644 --- a/src/video/cocoa/cocoa_v.mm +++ b/src/video/cocoa/cocoa_v.mm @@ -64,10 +64,6 @@ bool _cocoa_video_started = false; extern bool _tab_is_down; -#ifdef _DEBUG -static uint32 _tEvent; -#endif - /** List of common display/window sizes. */ static const Dimension _default_resolutions[] = { @@ -88,19 +84,6 @@ static const Dimension _default_resolutions[] = { static FVideoDriver_Cocoa iFVideoDriver_Cocoa; -/** - * Get current realtime. - * @return Tick time in milliseconds. - */ -static uint32 GetTick() -{ - struct timeval tim; - - gettimeofday(&tim, NULL); - return tim.tv_usec / 1000 + tim.tv_sec * 1000; -} - - /** Subclass of NSView for drawing to screen. */ @interface OTTD_QuartzView : NSView { VideoDriver_Cocoa *driver; @@ -603,13 +586,7 @@ void VideoDriver_Cocoa::CheckPaletteAnim() */ bool VideoDriver_Cocoa::PollEvent() { -#ifdef _DEBUG - uint32 et0 = GetTick(); -#endif NSEvent *event = [ NSApp nextEventMatchingMask:NSAnyEventMask untilDate:[ NSDate distantPast ] inMode:NSDefaultRunLoopMode dequeue:YES ]; -#ifdef _DEBUG - _tEvent += GetTick() - et0; -#endif if (event == nil) return false; -- cgit v1.2.3-54-g00ecf