mirror of
https://github.com/SFML/SFML.git
synced 2024-12-01 07:41:05 +08:00
Remove unused function
This commit is contained in:
parent
22b518af1f
commit
b13b488f9f
@ -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
|
||||
|
@ -29,8 +29,6 @@
|
||||
#import <SFML/Window/macOS/Scaling.h>
|
||||
#include <SFML/Window/macOS/cg_sf_conversion.hpp>
|
||||
|
||||
#include <SFML/System/Err.hpp>
|
||||
|
||||
#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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user