From c37bda1d06a4c81c443f89572bdc6d2b443ed40c Mon Sep 17 00:00:00 2001 From: Thomas Lively Date: Mon, 14 Aug 2023 15:50:34 -0700 Subject: [NFC] Factor `Result` and `MaybeResult` into a utility header (#5878) Allow them to be used for more than just the new text parser. --- src/wasm/wat-parser.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/wasm/wat-parser.cpp') diff --git a/src/wasm/wat-parser.cpp b/src/wasm/wat-parser.cpp index d5bda85fe..970901409 100644 --- a/src/wasm/wat-parser.cpp +++ b/src/wasm/wat-parser.cpp @@ -56,11 +56,6 @@ // may be passed the appropriate context type and return the correct result type // for each phase. -#define CHECK_ERR(val) \ - if (auto _val = (val); auto err = _val.getErr()) { \ - return Err{*err}; \ - } - using namespace std::string_view_literals; namespace wasm::WATParser { -- cgit v1.2.3