From 733a0a8d6d3fe424c8f39af0b41cdd22d9efa02a Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Sat, 5 Aug 2023 13:44:30 -0600 Subject: [PATCH] Let compiler define extra special member functions --- include/SFML/Graphics/Text.hpp | 24 ------------------------ src/SFML/Graphics/Text.cpp | 16 ---------------- 2 files changed, 40 deletions(-) diff --git a/include/SFML/Graphics/Text.hpp b/include/SFML/Graphics/Text.hpp index 4ed92e0f..be49fcae 100644 --- a/include/SFML/Graphics/Text.hpp +++ b/include/SFML/Graphics/Text.hpp @@ -86,30 +86,6 @@ public: //////////////////////////////////////////////////////////// Text(Font&& font, String string = "", unsigned int characterSize = 30) = delete; - //////////////////////////////////////////////////////////// - /// \brief Copy constructor - /// - //////////////////////////////////////////////////////////// - Text(const Text&); - - //////////////////////////////////////////////////////////// - /// \brief Copy assignment - /// - //////////////////////////////////////////////////////////// - Text& operator=(const Text&); - - //////////////////////////////////////////////////////////// - /// \brief Move constructor - /// - //////////////////////////////////////////////////////////// - Text(Text&&) noexcept; - - //////////////////////////////////////////////////////////// - /// \brief Move assignment - /// - //////////////////////////////////////////////////////////// - Text& operator=(Text&&) noexcept; - //////////////////////////////////////////////////////////// /// \brief Set the text's string /// diff --git a/src/SFML/Graphics/Text.cpp b/src/SFML/Graphics/Text.cpp index 79c55c5b..2feab642 100644 --- a/src/SFML/Graphics/Text.cpp +++ b/src/SFML/Graphics/Text.cpp @@ -104,22 +104,6 @@ m_characterSize(characterSize) } -//////////////////////////////////////////////////////////// -Text::Text(const Text&) = default; - - -//////////////////////////////////////////////////////////// -Text& Text::operator=(const Text&) = default; - - -//////////////////////////////////////////////////////////// -Text::Text(Text&&) noexcept = default; - - -//////////////////////////////////////////////////////////// -Text& Text::operator=(Text&&) noexcept = default; - - //////////////////////////////////////////////////////////// void Text::setString(const String& string) {