os: remove unused functions
parent
5bd188edad
commit
386367c3d5
12
vlib/os/os.v
12
vlib/os/os.v
|
@ -37,7 +37,6 @@ import const (
|
||||||
SEEK_END
|
SEEK_END
|
||||||
SA_SIGINFO
|
SA_SIGINFO
|
||||||
SIGSEGV
|
SIGSEGV
|
||||||
|
|
||||||
S_IFMT
|
S_IFMT
|
||||||
S_IFDIR
|
S_IFDIR
|
||||||
)
|
)
|
||||||
|
@ -168,16 +167,7 @@ fn open_file(file string) File {
|
||||||
|
|
||||||
// `create` creates a file at a specified location and returns a writable `File` object.
|
// `create` creates a file at a specified location and returns a writable `File` object.
|
||||||
pub fn create(path string) File {
|
pub fn create(path string) File {
|
||||||
return create_file(path)
|
return create_file2(path, 'w')
|
||||||
}
|
|
||||||
|
|
||||||
pub fn open_append(path string) File {
|
|
||||||
return create_file(path)
|
|
||||||
}
|
|
||||||
|
|
||||||
// TODO remove
|
|
||||||
fn create_file(file string) File {
|
|
||||||
return create_file2(file, 'w')
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn create_file_a(file string) File {
|
fn create_file_a(file string) File {
|
||||||
|
|
Loading…
Reference in New Issue