diff --git a/src/SFML/Window/macOS/cg_sf_conversion.hpp b/src/SFML/Window/macOS/cg_sf_conversion.hpp index 1b4e8577e..69539feff 100644 --- a/src/SFML/Window/macOS/cg_sf_conversion.hpp +++ b/src/SFML/Window/macOS/cg_sf_conversion.hpp @@ -43,25 +43,10 @@ namespace sf::priv //////////////////////////////////////////////////////////// unsigned int modeBitsPerPixel(CGDisplayModeRef mode); -//////////////////////////////////////////////////////////// -/// \brief Get bpp for all OS X version -/// -/// This function use only non-deprecated way to get the -/// display bits per pixel information for a given display id. -/// -//////////////////////////////////////////////////////////// -unsigned int displayBitsPerPixel(CGDirectDisplayID displayId); - //////////////////////////////////////////////////////////// /// \brief Convert a Quartz video mode into a sf::VideoMode object /// //////////////////////////////////////////////////////////// VideoMode convertCGModeToSFMode(CGDisplayModeRef cgmode); -//////////////////////////////////////////////////////////// -/// \brief Convert a sf::VideoMode object into a Quartz video mode -/// -//////////////////////////////////////////////////////////// -CGDisplayModeRef convertSFModeToCGMode(VideoMode sfmode); - } // namespace sf::priv diff --git a/src/SFML/Window/macOS/cg_sf_conversion.mm b/src/SFML/Window/macOS/cg_sf_conversion.mm index 14ad854e9..c36564e2a 100644 --- a/src/SFML/Window/macOS/cg_sf_conversion.mm +++ b/src/SFML/Window/macOS/cg_sf_conversion.mm @@ -29,8 +29,6 @@ #import #include -#include - #pragma GCC diagnostic ignored "-Wdeprecated-declarations" namespace sf::priv @@ -57,22 +55,6 @@ unsigned int modeBitsPerPixel(CGDisplayModeRef mode) } -//////////////////////////////////////////////////////////// -unsigned int displayBitsPerPixel(CGDirectDisplayID displayId) -{ - // Get the display mode. - CGDisplayModeRef mode = CGDisplayCopyDisplayMode(displayId); - - // Get bpp for the mode. - const auto bpp = modeBitsPerPixel(mode); - - // Clean up Memory. - CGDisplayModeRelease(mode); - - return bpp; -} - - //////////////////////////////////////////////////////////// VideoMode convertCGModeToSFMode(CGDisplayModeRef cgmode) {