Skip to content

Commit 5d858d2

Browse files
committed
Remove dumpStdHandles
1 parent 87cec63 commit 5d858d2

2 files changed

Lines changed: 0 additions & 16 deletions

File tree

src/debug/env.zig

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,3 @@ pub fn dumpDoorstopPath(module: if (builtin.os.tag == .windows) std.os.windows.H
3030

3131
logger.debug("Doorstop library path: {}", .{util.fmtString(doorstop_path)});
3232
}
33-
34-
pub fn dumpStdHandle(name: []const u8, handle: ?std.os.windows.HANDLE) void {
35-
var buf: [std.os.windows.PATH_MAX_WIDE]u16 = undefined;
36-
if (handle) |h| {
37-
const path = std.os.windows.GetFinalPathNameByHandle(h, .{}, &buf) catch |e| {
38-
logger.debug("Standard {s} handle at {}, unable to determine path: {}", .{ name, util.fmtAddress(h), e });
39-
return;
40-
};
41-
logger.debug("Standard {s} handle at {}, {s}", .{ name, util.fmtAddress(handle), std.unicode.fmtUtf16Le(path) });
42-
} else {
43-
logger.debug("Standard {s} handle at null", .{name});
44-
}
45-
}

src/entrypoint.zig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ pub fn entrypoint(module: if (builtin.os.tag == .windows) std.os.windows.HMODULE
4343
if (builtin.os.tag == .windows) {
4444
root.hooks.windows.stdout_handle = std.os.windows.GetStdHandle(std.os.windows.STD_OUTPUT_HANDLE) catch null;
4545
root.hooks.windows.stderr_handle = std.os.windows.GetStdHandle(std.os.windows.STD_ERROR_HANDLE) catch null;
46-
47-
debug_env.dumpStdHandle("output", root.hooks.windows.stdout_handle);
48-
debug_env.dumpStdHandle("error", root.hooks.windows.stderr_handle);
4946
}
5047

5148
switch (builtin.os.tag) {

0 commit comments

Comments
 (0)