From ad4d9da4cfbb0cb6ae1bb1b947554fbf176da12c Mon Sep 17 00:00:00 2001 From: Rangi42 Date: Fri, 14 Feb 2025 16:35:27 +0100 Subject: [PATCH] Remove unnecessary default constructor definitions --- include/asm/rpn.hpp | 9 --------- src/asm/parser.y | 9 --------- 2 files changed, 18 deletions(-) diff --git a/include/asm/rpn.hpp b/include/asm/rpn.hpp index 4381ad9a..860241b7 100644 --- a/include/asm/rpn.hpp +++ b/include/asm/rpn.hpp @@ -22,15 +22,6 @@ struct Expression { std::vector rpn{}; // Bytes serializing the RPN expression uint32_t rpnPatchSize = 0; // Size the expression will take in the object file - Expression() = default; - Expression(Expression &&) = default; -#ifdef _MSC_VER - // MSVC and WinFlexBison won't build without this... - Expression(Expression const &) = default; -#endif - - Expression &operator=(Expression &&) = default; - bool isKnown() const { return data.holds(); } int32_t value() const { return data.get(); } diff --git a/src/asm/parser.y b/src/asm/parser.y index 3f7ca62f..4f45d87b 100644 --- a/src/asm/parser.y +++ b/src/asm/parser.y @@ -31,15 +31,6 @@ struct StrFmtArgList { std::string format; std::vector> args; - - StrFmtArgList() = default; - StrFmtArgList(StrFmtArgList &&) = default; - #ifdef _MSC_VER - // MSVC and WinFlexBison won't build without this... - StrFmtArgList(StrFmtArgList const &) = default; - #endif - - StrFmtArgList &operator=(StrFmtArgList &&) = default; }; }