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__