From a3a8f7be38e8e760c1de87bc71bb6336a486a40d Mon Sep 17 00:00:00 2001 From: Henner Zeller Date: Mon, 17 Apr 2023 10:51:10 -0700 Subject: [PATCH] Remove a statement without effect. The return value of the min(...) call is never used. Looks like some leftover from some previous implementation. Signed-off-by: Henner Zeller --- kernel/yw.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/kernel/yw.cc b/kernel/yw.cc index 73e7710db..ef043fb0d 100644 --- a/kernel/yw.cc +++ b/kernel/yw.cc @@ -190,8 +190,6 @@ RTLIL::Const ReadWitness::get_bits(int t, int bits_offset, int width) const int read_begin = GetSize(bits) - 1 - bits_offset; int read_end = max(-1, read_begin - width); - min(width, GetSize(bits) - bits_offset); - for (int i = read_begin, j = 0; i > read_end; i--, j++) { RTLIL::State bit = State::Sa; switch (bits[i]) {