From 7b4a0d7b97b9479d516178f97331dfc0f407a5de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20R=C3=B8nningstad?= Date: Thu, 15 Aug 2024 16:37:18 +0200 Subject: [PATCH] zcbor.py: Remove outdated assert statement MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Øyvind Rønningstad --- zcbor/zcbor.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/zcbor/zcbor.py b/zcbor/zcbor.py index edfc7a58..c709801f 100755 --- a/zcbor/zcbor.py +++ b/zcbor/zcbor.py @@ -2589,9 +2589,6 @@ def full_xcode(self, union_int=None): f"This code needs self.mode to be 'decode', not {self.mode}." if not self.repeated_single_func_impl_condition(): decode_str = self.repeated_xcode(union_int) - assert "zcbor_" in decode_str, \ - """Must be a direct call to zcbor to guarantee that payload and elem_count" -are cleaned up after a failure.""" return f"({self.present_var_access()} = {self.repeated_xcode(union_int)}, 1)" func, *arguments = self.repeated_single_func(ptr_result=True) return (