From f2e5bb447e3f2ff9d9fea1f7094cf9e58351ca79 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Mon, 21 Feb 2022 09:58:43 +0200 Subject: [PATCH] os: remove dead code --- vlib/os/os.c.v | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/vlib/os/os.c.v b/vlib/os/os.c.v index 67c0f4429e..7ece54b24e 100644 --- a/vlib/os/os.c.v +++ b/vlib/os/os.c.v @@ -599,23 +599,6 @@ pub fn read_file_array(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]