diff options
author | David Robillard <d@drobilla.net> | 2018-08-19 12:12:50 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-09-29 14:48:29 +0200 |
commit | 8a0da948388b02fa7ce3d39edd8beff9fc4e197a (patch) | |
tree | 8cf13340b6043c08c01a16d6336e1d904b2860b1 | |
parent | fe202f6af41deb3e766e78ab6d4a12fe2ced7aa4 (diff) | |
download | chilbert-8a0da948388b02fa7ce3d39edd8beff9fc4e197a.tar.gz chilbert-8a0da948388b02fa7ce3d39edd8beff9fc4e197a.tar.bz2 chilbert-8a0da948388b02fa7ce3d39edd8beff9fc4e197a.zip |
Remove rack() accessor from BigBitVec
-rw-r--r-- | chilbert/BigBitVec.hpp | 4 | ||||
-rw-r--r-- | chilbert/Hilbert.ipp | 2 |
2 files changed, 1 insertions, 5 deletions
diff --git a/chilbert/BigBitVec.hpp b/chilbert/BigBitVec.hpp index e7eeeee..977fabb 100644 --- a/chilbert/BigBitVec.hpp +++ b/chilbert/BigBitVec.hpp @@ -382,10 +382,6 @@ public: return *this; } - /// Return the first rack - Rack& rack() { return m_pcRacks[0]; } - Rack rack() const { return m_pcRacks[0]; } - /// Return a pointer to the racks Rack* racks() { return m_pcRacks.get(); } const Rack* racks() const { return m_pcRacks.get(); } diff --git a/chilbert/Hilbert.ipp b/chilbert/Hilbert.ipp index 92a2f0e..9d23271 100644 --- a/chilbert/Hilbert.ipp +++ b/chilbert/Hilbert.ipp @@ -111,7 +111,7 @@ update1(const I& l, const I& t, const I& w, const size_t n, I& e, size_t& d) } assert(0 <= d && d < n); - if (!(w.rack() & 1)) { + if (!w.test(0)) { e.flip(d == 0 ? n - 1 : d - 1); //#D d ); } } |