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:
parent
07e9ed1a1d
commit
f2e5bb447e
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user