From f1d8d57490190fff131c66a7debdabd82f23e6c3 Mon Sep 17 00:00:00 2001 From: Filip Krawczyk Date: Thu, 20 Jun 2024 10:04:02 +0200 Subject: [PATCH] Remove unnecessary if check from slice_le --- src/utils/types/words64.cairo | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/utils/types/words64.cairo b/src/utils/types/words64.cairo index aad5b50..1b7c3c6 100644 --- a/src/utils/types/words64.cairo +++ b/src/utils/types/words64.cairo @@ -98,9 +98,6 @@ impl Words64Impl of Words64Trait { // start: 5 | len: 17 // output: [0x3295abcdef123456, 0x2576758493478594, 0x54] fn slice_le(self: Words64, start: usize, len: usize) -> Words64 { - if len == 0 { - return ArrayTrait::new().span(); - } let (q, n_ending_bytes) = DivRem::div_rem( len, TryInto::>::try_into(8).unwrap() );