From 4731a460a2735380ced273caed4cb04b0f5545ba Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Thu, 10 Aug 2023 19:58:59 -0700 Subject: [PATCH] Remove assertion --- src/string_immutable.zig | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/string_immutable.zig b/src/string_immutable.zig index fd5bcb00a4..5ff373f034 100644 --- a/src/string_immutable.zig +++ b/src/string_immutable.zig @@ -1483,9 +1483,6 @@ pub fn toUTF8AllocWithType(allocator: std.mem.Allocator, comptime Type: type, ut // add 16 bytes of padding for SIMDUTF var list = try std.ArrayList(u8).initCapacity(allocator, length + 16); list = try convertUTF16ToUTF8(list, Type, utf16); - if (Environment.allow_assert) { - std.debug.assert(list.items.len == length); - } return list.items; }