Skip to content

Commit

Permalink
Remove unnecessary default constructor definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
Rangi42 committed Feb 14, 2025
1 parent 1489854 commit ad4d9da
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
9 changes: 0 additions & 9 deletions include/asm/rpn.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,6 @@ struct Expression {
std::vector<uint8_t> 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>(); }
int32_t value() const { return data.get<int32_t>(); }

Expand Down
9 changes: 0 additions & 9 deletions src/asm/parser.y
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,6 @@
struct StrFmtArgList {
std::string format;
std::vector<Either<uint32_t, std::string>> 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;
};
}

Expand Down

0 comments on commit ad4d9da

Please sign in to comment.