remove builtin.os check in Address.initUnix

This commit is contained in:
Luna 2019-11-10 16:44:18 -03:00
parent d1eabe81a9
commit c8a8da2804

View File

@ -218,11 +218,6 @@ pub const Address = extern union {
}
pub fn initUnix(path: []const u8) !Address {
switch (builtin.os) {
.linux, .macosx, .freebsd, .netbsd => {},
else => return error.UnsupportedOS,
}
var sock_addr = os.sockaddr_un{
.family = os.AF_UNIX,
.path = undefined,