mirror of
https://github.com/Z3Prover/z3
synced 2026-02-15 05:11:49 +00:00
Remove unused swap() methods (#8538)
This commit is contained in:
parent
56db8d5e98
commit
c0be7ac621
8 changed files with 17 additions and 24 deletions
|
|
@ -278,7 +278,7 @@ namespace dd {
|
|||
bdd(unsigned root, bdd_manager* m): root(root), m(m) { m->inc_ref(root); }
|
||||
public:
|
||||
bdd(bdd const & other): root(other.root), m(other.m) { m->inc_ref(root); }
|
||||
bdd(bdd && other) noexcept : root(0), m(other.m) { std::swap(root, other.root); }
|
||||
bdd(bdd && other) noexcept : root(other.root), m(other.m) { other.root = 0; }
|
||||
bdd& operator=(bdd const& other);
|
||||
~bdd() { m->dec_ref(root); }
|
||||
bdd lo() const { return bdd(m->lo(root), m); }
|
||||
|
|
|
|||
|
|
@ -418,7 +418,7 @@ namespace dd {
|
|||
public:
|
||||
pdd(pdd_manager& m): pdd(0, m) { SASSERT(is_zero()); }
|
||||
pdd(pdd const& other): pdd(other.root, other.m) { m->inc_ref(root); }
|
||||
pdd(pdd && other) noexcept : pdd(0, other.m) { std::swap(root, other.root); }
|
||||
pdd(pdd && other) noexcept : root(other.root), m(other.m) { other.root = 0; }
|
||||
pdd& operator=(pdd const& other);
|
||||
pdd& operator=(unsigned k);
|
||||
pdd& operator=(rational const& k);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue