diff options
author | Patric Stout <truebrain@openttd.org> | 2021-02-21 15:58:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-21 15:58:26 +0100 |
commit | 88959f55958070dd4cfa57ab0c6ce01a55792748 (patch) | |
tree | 506f574f103a1fd9926d1820282ebd234aa01969 /src/video/cocoa/cocoa_v.mm | |
parent | 1d6a0c7b5287984d55f8827acab7e895ab12e7ee (diff) | |
download | openttd-88959f55958070dd4cfa57ab0c6ce01a55792748.tar.xz |
Codechange: [OSX] remove final bits of old debugging code (#8714)
Diffstat (limited to 'src/video/cocoa/cocoa_v.mm')
-rw-r--r-- | src/video/cocoa/cocoa_v.mm | 23 |
1 files changed, 0 insertions, 23 deletions
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; |