1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

builtin: remove opt_ok2() (part 2) (#16054)

This commit is contained in:
yuyi 2022-10-13 15:35:41 +08:00 committed by GitHub
parent 4fbb29a2c0
commit fb3d093e01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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__