Skip to content

Commit

Permalink
Revert "Add a temporal debugging code"
Browse files Browse the repository at this point in the history
This reverts commit 5bd144c1bb20e22e4d9f5e5e0264820fd3ef8137.
  • Loading branch information
mame authored and hsbt committed Nov 27, 2024
1 parent 0ba400b commit b152f5b
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions ext/io/console/console.c
Original file line number Diff line number Diff line change
Expand Up @@ -827,14 +827,7 @@ console_winsize(VALUE io)
{
rb_console_size_t ws;
int fd = GetWriteFD(io);
#if defined TIOCGWINSZ
// temporal debugging code
int ret = ioctl(fd, TIOCGWINSZ, &ws);
if (ret == -1) sys_fail(io);
if (ret != 0) rb_bug("ioctl(TIOCGWINSZ) returned %d", ret);
#else
if (!getwinsize(fd, &ws)) sys_fail(io);
#endif
return rb_assoc_new(INT2NUM(winsize_row(&ws)), INT2NUM(winsize_col(&ws)));
}

Expand Down

0 comments on commit b152f5b

Please sign in to comment.