os: remove dead code

pull/13559/head
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
1 changed files with 0 additions and 17 deletions

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
// process.
[manualfree]