From 55523df730ac47d672bc757a948497a52db18630 Mon Sep 17 00:00:00 2001 From: Seweryn Date: Sat, 27 Jan 2024 17:01:46 +0100 Subject: [PATCH] Update process.c.v Removing unnecesary `retun`s --- vlib/os/process.c.v | 7 ------- 1 file changed, 7 deletions(-) diff --git a/vlib/os/process.c.v b/vlib/os/process.c.v index cf887d65c5322f..0ce45556699912 100644 --- a/vlib/os/process.c.v +++ b/vlib/os/process.c.v @@ -14,7 +14,6 @@ pub fn (mut p Process) signal_kill() { } p._signal_kill() p.status = .aborted - return } // signal_pgkill - kills the whole process group @@ -23,7 +22,6 @@ pub fn (mut p Process) signal_pgkill() { return } p._signal_pgkill() - return } // signal_stop - stops the process, you can resume it with p.signal_continue() @@ -33,7 +31,6 @@ pub fn (mut p Process) signal_stop() { } p._signal_stop() p.status = .stopped - return } // signal_continue - tell a stopped process to continue/resume its work @@ -43,7 +40,6 @@ pub fn (mut p Process) signal_continue() { } p._signal_continue() p.status = .running - return } // wait - wait for a process to finish. @@ -60,7 +56,6 @@ pub fn (mut p Process) wait() { return } p._wait() - return } // close - free the OS resources associated with the process. @@ -132,7 +127,6 @@ pub fn (mut p Process) set_redirect_stdio() { $if trace_process_pipes ? { eprintln('${@LOCATION}, pid: ${p.pid}, status: ${p.status}') } - return } // stdin_write will write the string `s`, to the stdin pipe of the child process. @@ -323,5 +317,4 @@ pub fn (mut p Process) run() { return } p._spawn() - return }