Remove wxCFDictKeyToInt which became unused after recent changes

75831d232c removed all references to this
function, but left the function itself, resulting in -Wunused-function clang
warnings (and compiling an unused function, of course).
This commit is contained in:
Vadim Zeitlin 2017-07-11 22:30:07 +02:00
parent a5bcf1dafd
commit aa8c9e1b86

View File

@ -215,18 +215,6 @@ wxRect wxDisplayImplMacOSX::GetClientArea() const
return wxDisplayImpl::GetClientArea();
}
static int wxCFDictKeyToInt( CFDictionaryRef desc, CFStringRef key )
{
CFNumberRef value = (CFNumberRef) CFDictionaryGetValue( desc, key );
if (value == NULL)
return 0;
int num = 0;
CFNumberGetValue( value, kCFNumberIntType, &num );
return num;
}
static int wxOSXCGDisplayModeGetBitsPerPixel( CGDisplayModeRef theValue )
{
wxCFRef<CFStringRef> pixelEncoding( CGDisplayModeCopyPixelEncoding(theValue) );