Remove unused function

This commit is contained in:
Chris Thrasher 2023-12-17 18:06:53 -07:00
parent 22b518af1f
commit b13b488f9f
2 changed files with 0 additions and 33 deletions

View File

@ -43,25 +43,10 @@ namespace sf::priv
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
unsigned int modeBitsPerPixel(CGDisplayModeRef mode); 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 /// \brief Convert a Quartz video mode into a sf::VideoMode object
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
VideoMode convertCGModeToSFMode(CGDisplayModeRef cgmode); VideoMode convertCGModeToSFMode(CGDisplayModeRef cgmode);
////////////////////////////////////////////////////////////
/// \brief Convert a sf::VideoMode object into a Quartz video mode
///
////////////////////////////////////////////////////////////
CGDisplayModeRef convertSFModeToCGMode(VideoMode sfmode);
} // namespace sf::priv } // namespace sf::priv

View File

@ -29,8 +29,6 @@
#import <SFML/Window/macOS/Scaling.h> #import <SFML/Window/macOS/Scaling.h>
#include <SFML/Window/macOS/cg_sf_conversion.hpp> #include <SFML/Window/macOS/cg_sf_conversion.hpp>
#include <SFML/System/Err.hpp>
#pragma GCC diagnostic ignored "-Wdeprecated-declarations" #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
namespace sf::priv 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) VideoMode convertCGModeToSFMode(CGDisplayModeRef cgmode)
{ {