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
This commit is contained in:
Hertatijanto Hartono 2020-07-02 08:49:46 +07:00 committed by Vadim Zeitlin
parent 243f81a66e
commit bb1c1e0fa0

View File

@ -46,8 +46,7 @@ wxMacAutoreleasePool::~wxMacAutoreleasePool()
CGContextRef wxOSXGetContextFromCurrentContext() CGContextRef wxOSXGetContextFromCurrentContext()
{ {
CGContextRef context = (CGContextRef)[[NSGraphicsContext currentContext] CGContextRef context = [[NSGraphicsContext currentContext] CGContext];
CGContext];
return context; return context;
} }