Skip to content

Commit

Permalink
Delete sys.fs.Permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
Apprentice-Alchemist committed Jun 18, 2024
1 parent 4065dab commit eee4540
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 12 deletions.
1 change: 0 additions & 1 deletion std/sys/fs/File.hx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ extern class File {
function syncAll():Void;
function syncData():Void;
function metadata():Metadata;
function setPermissions(perm:Permissions):Void;
// TODO: technically these should all use a Int64 or even uint64 type, but `haxe.io.Bytes` uses an int length, so...

function read(bytes:haxe.io.Bytes, bufferOffset:Int, bufferLength:Int):Int;
Expand Down
1 change: 0 additions & 1 deletion std/sys/fs/Fs.hx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ extern class Fs {
Returns the metadata for `path` without following symlinks.
**/
static function symlinkMetadata(path:Path):Metadata;
static function setPermissions(path:Path, perm:Permissions):Void;
static function copy(from:Path, to:Path):Void;
static function rename(from:Path, to:Path):Void;
static function readDir(path:Path):Iterator<DirEntry>;
Expand Down
1 change: 0 additions & 1 deletion std/sys/fs/Metadata.hx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ extern class Metadata {
function isFile():Bool;
function isSymlink():Bool;
function size():haxe.Int64;
function permissions():Permissions;
function modified():Null<haxe.time.SystemTime>;
function accessed():Null<haxe.time.SystemTime>;
function created():Null<haxe.time.SystemTime>;
Expand Down
9 changes: 0 additions & 9 deletions std/sys/fs/Permissions.hx

This file was deleted.

6 changes: 6 additions & 0 deletions std/sys/net/TcpStream.hx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ import haxe.time.Duration;

// TODO: docs

#if available(feature = "new_tcp_api")

#end

@:experimental(feature = "new_tcp_api")
@:stable(feature = "new_tcp_api", since = "5.0.0")
@:coreApi
extern class TcpStream {
static function connect(address:SocketAddress, ?timeout:Duration):TcpStream;
Expand Down

0 comments on commit eee4540

Please sign in to comment.