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

os: remove dead code

This commit is contained in:
Delyan Angelov 2022-02-21 09:58:43 +02:00
parent 07e9ed1a1d
commit f2e5bb447e
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -599,23 +599,6 @@ pub fn read_file_array<T>(path string) []T {
} }
} }
pub fn on_segfault(f voidptr) {
$if windows {
return
}
$if macos {
C.printf(c'TODO')
/*
mut sa := C.sigaction{}
C.memset(&sa, 0, sizeof(C.sigaction_size))
C.sigemptyset(&sa.sa_mask)
sa.sa_sigaction = f
sa.sa_flags = C.SA_SIGINFO
C.sigaction(C.SIGSEGV, &sa, 0)
*/
}
}
// executable returns the path name of the executable that started the current // executable returns the path name of the executable that started the current
// process. // process.
[manualfree] [manualfree]