diff --git a/modemm17/Util.h b/modemm17/Util.h index 1947dadd8..20032f8d4 100644 --- a/modemm17/Util.h +++ b/modemm17/Util.h @@ -19,19 +19,6 @@ namespace modemm17 namespace detail { -// template -// constexpr std::bitset make_bitset(std::index_sequence, Tuple&& tuple) -// { -// constexpr auto size = sizeof...(Is); -// std::bitset result; -// using expand = int[]; -// for (size_t i = 0; i != size; ++i) -// { -// void(expand {0, result[Is] = std::get(tuple)...}); -// } -// return result; -// } - /** * This is the max value for the LLR based on size N. */ @@ -144,32 +131,6 @@ auto llr(float sample) return std::get<1>(*it); } -template -std::array depunctured( - std::array puncture_matrix, - std::array in -) -{ - static_assert(M % N == 0, "M must be an integer multiple of N"); - - std::array result; - size_t index = 0; - size_t pindex = 0; - for (size_t i = 0; i != M; ++i) - { - if (!puncture_matrix[pindex++]) - { - result[i] = 0; - } - else - { - result[i] = in[index++]; - } - if (pindex == N) pindex = 0; - } - return result; -} - template size_t depuncture( // FIXME: MSVC const std::array& in,