3
0
Fork 0
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:
Copilot 2026-02-08 18:53:43 +00:00 committed by GitHub
parent 56db8d5e98
commit c0be7ac621
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 17 additions and 24 deletions

View file

@ -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); }

View file

@ -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);