From 386367c3d58df7c20187bc75f77249dc4a81d2b6 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Sun, 30 Jun 2019 15:42:16 +0200 Subject: [PATCH] os: remove unused functions --- vlib/os/os.v | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/vlib/os/os.v b/vlib/os/os.v index 31dff20c00..23375c00be 100644 --- a/vlib/os/os.v +++ b/vlib/os/os.v @@ -37,9 +37,8 @@ import const ( SEEK_END SA_SIGINFO SIGSEGV - -S_IFMT -S_IFDIR + S_IFMT + S_IFDIR ) struct C.stat { @@ -168,16 +167,7 @@ fn open_file(file string) File { // `create` creates a file at a specified location and returns a writable `File` object. pub fn create(path string) File { - return create_file(path) -} - -pub fn open_append(path string) File { - return create_file(path) -} - -// TODO remove -fn create_file(file string) File { - return create_file2(file, 'w') + return create_file2(path, 'w') } fn create_file_a(file string) File {