Skip to content

Commit

Permalink
Remove explicit copy constructors with default implementation.
Browse files Browse the repository at this point in the history
If there is a copy constructor, we also would have to define an
assignment operator. Since these are default anyway, just use the
default as-is.
  • Loading branch information
hzeller committed Apr 21, 2024
1 parent ec69cae commit 6898437
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions common/text/token_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ class TokenInfo {
Context(absl::string_view b,
std::function<void(std::ostream&, int)> translator)
: base(b), token_enum_translator(std::move(translator)) {}

Context(const Context&) = default;
};

int token_enum() const { return token_enum_; }
Expand Down
3 changes: 0 additions & 3 deletions verilog/analysis/verilog_linter_configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,6 @@ class LinterConfiguration {
// Constructor has no rules enabled by default;
LinterConfiguration() = default;

// This is copy-able.
LinterConfiguration(const LinterConfiguration &) = default;

void TurnOn(const analysis::LintRuleId &rule) {
configuration_[rule] = {true, ""};
}
Expand Down

0 comments on commit 6898437

Please sign in to comment.