From aa8c9e1b863336c13be13acd27efa40f548975ac Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 11 Jul 2017 22:30:07 +0200 Subject: [PATCH] Remove wxCFDictKeyToInt which became unused after recent changes 75831d232c193be88d8bae0b9fb2b6d3bb549cc5 removed all references to this function, but left the function itself, resulting in -Wunused-function clang warnings (and compiling an unused function, of course). --- src/osx/core/display.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/osx/core/display.cpp b/src/osx/core/display.cpp index b77018084b..fa4fec60a8 100644 --- a/src/osx/core/display.cpp +++ b/src/osx/core/display.cpp @@ -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 pixelEncoding( CGDisplayModeCopyPixelEncoding(theValue) );