diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2026-02-08 16:39:56 +0100 |
|---|---|---|
| committer | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2026-02-09 15:07:27 +0100 |
| commit | 8ed264680b1f3f94b6aa5176824d4ccadfc30322 (patch) | |
| tree | 6fb815549b2f1ce4694f32dee216a628a221ecd4 /core/encoding/hxa/write.odin | |
| parent | 5bf30b2d562dd7b746a351dce333914e2ca958c8 (diff) | |
Remove all `core:os` imports from JS targets
Fix `local_tz_name` on FreeBSD.
Diffstat (limited to 'core/encoding/hxa/write.odin')
| -rw-r--r-- | core/encoding/hxa/write.odin | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/core/encoding/hxa/write.odin b/core/encoding/hxa/write.odin index e8ef9a139..cbf9c7cb6 100644 --- a/core/encoding/hxa/write.odin +++ b/core/encoding/hxa/write.odin @@ -1,6 +1,5 @@ package encoding_hxa -import os "core:os/os2" import "core:mem" Write_Error :: enum { @@ -9,21 +8,6 @@ Write_Error :: enum { Failed_File_Write, } -write_to_file :: proc(filepath: string, file: File) -> (err: Write_Error) { - required := required_write_size(file) - buf, alloc_err := make([]byte, required) - if alloc_err == .Out_Of_Memory { - return .Failed_File_Write - } - defer delete(buf) - - write_internal(&Writer{data = buf}, file) - if os.write_entire_file(filepath, buf) != nil { - err =.Failed_File_Write - } - return -} - write :: proc(buf: []byte, file: File) -> (n: int, err: Write_Error) { required := required_write_size(file) if len(buf) < required { |