3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-11-18 20:00:49 +00:00

delete more default constructors

reduces code size by 0.1%
This commit is contained in:
Nuno Lopes 2024-09-23 12:13:52 +01:00
parent 4b4a28239f
commit 737c2208fa
41 changed files with 35 additions and 91 deletions

View file

@ -54,8 +54,6 @@ namespace datalog {
var_idx_set m_all_nonlocal_vars;
rule_vector m_rules;
pair_info() {}
pair_info & operator=(const pair_info &) = delete;
bool can_be_joined() const {
return m_consumers > 0;

View file

@ -1043,7 +1043,6 @@ namespace datalog {
class relation_manager::null_signature_table_project_fn : public table_transformer_fn {
const table_signature m_empty_sig;
public:
null_signature_table_project_fn() : m_empty_sig() {}
table_base * operator()(const table_base & t) override {
relation_manager & m = t.get_plugin().get_manager();
table_base * res = m.mk_empty_table(m_empty_sig);

View file

@ -36,7 +36,7 @@ namespace datalog {
/**
Create uninitialized rel_spec.
*/
rel_spec() {}
rel_spec() = default;
/**
\c inner_kind==null_family_id means we will not specify a relation kind when requesting
the relation object from the relation_manager.

View file

@ -674,8 +674,6 @@ namespace datalog {
class karr_relation_plugin::union_fn : public relation_union_fn {
public:
union_fn() {}
void operator()(relation_base & _r, const relation_base & _src, relation_base * _delta) override {
karr_relation& r = get(_r);

View file

@ -491,8 +491,6 @@ namespace datalog {
}
class udoc_plugin::union_fn : public relation_union_fn {
public:
union_fn() {}
void operator()(relation_base & _r, const relation_base & _src, relation_base * _delta) override {
TRACE("doc", _r.display(tout << "dst:\n"); _src.display(tout << "src:\n"););
udoc_relation& r = get(_r);
@ -1040,8 +1038,6 @@ namespace datalog {
class udoc_plugin::join_project_and_fn : public relation_join_fn {
public:
join_project_and_fn() {}
relation_base* operator()(relation_base const& t1, relation_base const& t2) override {
udoc_relation *result = get(t1.clone());
result->get_udoc().intersect(result->get_dm(), get(t2).get_udoc());