From eb1fded2e672ba4cb5a838247a6897e35c398096 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 16 Dec 2022 10:33:04 +0100 Subject: [PATCH] ev::close: remove redundant comment This error case is explained in ev::unregister --- ev/+linux/file.ha | 4 ---- diff --git a/ev/+linux/file.ha b/ev/+linux/file.ha index 11e0976a6f826e36de5f8283ff9a71da782918d8..fc417361aa743afbf739a1c2b94a2d5db00fbee0 100644 --- a/ev/+linux/file.ha +++ b/ev/+linux/file.ha @@ -85,10 +85,6 @@ // it, and closes the underlying file descriptor. export fn close(file: *file) void = { const loop = file.ev; if (file.flags & fflags::BLOCKING == 0) { - // The only way that this could fail is in the event of a - // use-after-free or if the user fucks around and constructs a - // custom [[file]] which was never registered, so assert on - // error. rt::epoll_ctl(loop.fd, rt::EPOLL_CTL_DEL, file.fd, null)!; }; io::close(file.fd)!; -- 2.48.1