From a256c5cdcdedf711285fa28334fcbb318414a698 Mon Sep 17 00:00:00 2001 From: ZXShady <153229951+ZXShady@users.noreply.github.com> Date: Mon, 22 Jul 2024 07:50:00 +0300 Subject: [PATCH] Remove useless attributes from implementation files (#3175) --- include/SFML/System/Utf.inl | 4 ++-- src/SFML/Graphics/Image.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/SFML/System/Utf.inl b/include/SFML/System/Utf.inl index 4bdf48632..daaab9be9 100644 --- a/include/SFML/System/Utf.inl +++ b/include/SFML/System/Utf.inl @@ -662,7 +662,7 @@ Out Utf<32>::toUtf32(In begin, In end, Out output) //////////////////////////////////////////////////////////// template -std::uint32_t Utf<32>::decodeAnsi(In input, [[maybe_unused]] const std::locale& locale) +std::uint32_t Utf<32>::decodeAnsi(In input, const std::locale& locale) { // Get the facet of the locale which deals with character conversion const auto& facet = std::use_facet>(locale); @@ -688,7 +688,7 @@ std::uint32_t Utf<32>::decodeWide(In input) //////////////////////////////////////////////////////////// template -Out Utf<32>::encodeAnsi(std::uint32_t codepoint, Out output, char replacement, [[maybe_unused]] const std::locale& locale) +Out Utf<32>::encodeAnsi(std::uint32_t codepoint, Out output, char replacement, const std::locale& locale) { // Get the facet of the locale which deals with character conversion const auto& facet = std::use_facet>(locale); diff --git a/src/SFML/Graphics/Image.cpp b/src/SFML/Graphics/Image.cpp index e124830e4..456d3821a 100644 --- a/src/SFML/Graphics/Image.cpp +++ b/src/SFML/Graphics/Image.cpp @@ -376,7 +376,7 @@ void Image::createMaskFromColor(const Color& color, std::uint8_t alpha) //////////////////////////////////////////////////////////// -[[nodiscard]] bool Image::copy(const Image& source, Vector2u dest, const IntRect& sourceRect, bool applyAlpha) +bool Image::copy(const Image& source, Vector2u dest, const IntRect& sourceRect, bool applyAlpha) { // Make sure that both images are valid if (source.m_size.x == 0 || source.m_size.y == 0 || m_size.x == 0 || m_size.y == 0)