From 8a0da948388b02fa7ce3d39edd8beff9fc4e197a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 19 Aug 2018 12:12:50 +0200 Subject: Remove rack() accessor from BigBitVec --- chilbert/BigBitVec.hpp | 4 ---- chilbert/Hilbert.ipp | 2 +- 2 files changed, 1 insertion(+), 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 ); } } -- cgit v1.2.1