From a2bb246db4c2bb88f402215d5db79a535dbff4b6 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 5 Aug 2020 13:30:43 -0700 Subject: [PATCH] Revert "std.fmt.format: small optimization to avoid runtime bloat" This reverts commit 11d38a7e520f485206b7b010f64127d864194e4c. The benefits of this commit are not enough to justify the compromise that it made. closes #5977 --- lib/std/fmt.zig | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/std/fmt.zig b/lib/std/fmt.zig index df222daddd..c9ba3b3470 100644 --- a/lib/std/fmt.zig +++ b/lib/std/fmt.zig @@ -88,8 +88,6 @@ pub fn format( if (args.len > ArgSetType.bit_count) { @compileError("32 arguments max are supported per format call"); } - if (args.len == 0) - return writer.writeAll(fmt); const State = enum { Start,