From afef6d353c4283798b82e6cd4a6969fdfdc7cf7c Mon Sep 17 00:00:00 2001 From: Thomas Lively Date: Tue, 16 Jul 2024 13:50:50 -0400 Subject: Remove extra space printed in empty structs (#6750) When we switched to the new type printing machinery, we inserted this extra space to minimize the diff in the test output compared with the previous type printer. Improve the quality of the printed output by removing it. --- src/wasm/wasm-type.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src') diff --git a/src/wasm/wasm-type.cpp b/src/wasm/wasm-type.cpp index 6328180f8..adb2c7fa8 100644 --- a/src/wasm/wasm-type.cpp +++ b/src/wasm/wasm-type.cpp @@ -2109,10 +2109,6 @@ TypePrinter::print(const Struct& struct_, print(struct_.fields[i]); os << ')'; } - // TODO: Remove this extra space kept to minimize test diffs. - if (struct_.fields.size() == 0) { - os << ' '; - } return os << ")"; } -- cgit v1.2.3