Skip to content

Commit

Permalink
ast: remove 2 default constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
nunoplopes committed May 24, 2021
1 parent 2ebab02 commit 36ca98c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
8 changes: 0 additions & 8 deletions src/ast/ast.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,14 +174,6 @@ decl_info::decl_info(family_id family_id, decl_kind k, unsigned num_parameters,
m_private_parameters(private_params) {
}

decl_info::decl_info(decl_info const& other) :
m_family_id(other.m_family_id),
m_kind(other.m_kind),
m_parameters(other.m_parameters.size(), other.m_parameters.data()),
m_private_parameters(other.m_private_parameters) {
}


void decl_info::init_eh(ast_manager & m) {
for (parameter & p : m_parameters) {
p.init_eh(m);
Expand Down
5 changes: 1 addition & 4 deletions src/ast/ast.h
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,6 @@ class decl_info {
decl_info(family_id family_id = null_family_id, decl_kind k = null_decl_kind,
unsigned num_parameters = 0, parameter const * parameters = nullptr, bool private_params = false);

decl_info(decl_info const& other);

void init_eh(ast_manager & m);
void del_eh(ast_manager & m);

Expand Down Expand Up @@ -368,8 +366,7 @@ class sort_info : public decl_info {
unsigned num_parameters = 0, parameter const * parameters = nullptr, bool private_parameters = false):
decl_info(family_id, k, num_parameters, parameters, private_parameters), m_num_elements(num_elements) {
}
sort_info(sort_info const& other) : decl_info(other), m_num_elements(other.m_num_elements) {
}

sort_info(decl_info const& di, sort_size const& num_elements) :
decl_info(di), m_num_elements(num_elements) {}

Expand Down

0 comments on commit 36ca98c

Please sign in to comment.