From fb3d093e01815dd63f9fc2255fbe06f78c42cd59 Mon Sep 17 00:00:00 2001 From: yuyi Date: Thu, 13 Oct 2022 15:35:41 +0800 Subject: [PATCH] builtin: remove opt_ok2() (part 2) (#16054) --- vlib/builtin/option.v | 8 -------- 1 file changed, 8 deletions(-) diff --git a/vlib/builtin/option.v b/vlib/builtin/option.v index 05f9bc44e6..8b684fa90c 100644 --- a/vlib/builtin/option.v +++ b/vlib/builtin/option.v @@ -133,14 +133,6 @@ fn _option_ok(data voidptr, mut option _option, size int) { } } -fn opt_ok2(data voidptr, mut option _option, size int) { - unsafe { - *option = _option{} - // use err to get the end of OptionBase and then memcpy into it - vmemcpy(&u8(&option.err) + sizeof(IError), data, size) - } -} - struct _result { is_error bool err IError = none__