From bb1c1e0fa021d96bf8b1825df5a10bebfce756f2 Mon Sep 17 00:00:00 2001 From: Hertatijanto Hartono Date: Thu, 2 Jul 2020 08:49:46 +0700 Subject: [PATCH] Remove useless casting to CGContextRef This is not necessary any more after the changes done in 360240a70b (Replace deprecated methods from utilscocoa.mm (#1916), 2020-06-30). Closes https://github.com/wxWidgets/wxWidgets/pull/1922 --- src/osx/carbon/utilscocoa.mm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/osx/carbon/utilscocoa.mm b/src/osx/carbon/utilscocoa.mm index 6fb47ae7bf..a3062ba261 100644 --- a/src/osx/carbon/utilscocoa.mm +++ b/src/osx/carbon/utilscocoa.mm @@ -46,8 +46,7 @@ wxMacAutoreleasePool::~wxMacAutoreleasePool() CGContextRef wxOSXGetContextFromCurrentContext() { - CGContextRef context = (CGContextRef)[[NSGraphicsContext currentContext] - CGContext]; + CGContextRef context = [[NSGraphicsContext currentContext] CGContext]; return context; }