bugfix: Remove CallOnDrop from port.rs

CallOnDrop is no longer used in the Windows IOCP backend, and it wasn't
being flagged as unused until the latest nightly. In order to fix
Windows builds, this commit removes CallOnDrop.

Signed-off-by: John Nunley <dev@notgull.net>
This commit is contained in:
John Nunley 2024-03-12 20:37:16 -07:00
parent 4d64fdc572
commit 7b1e24af81
No known key found for this signature in database
GPG Key ID: 2FE69973CFD64832
1 changed files with 0 additions and 8 deletions

View File

@ -296,11 +296,3 @@ impl<T: CompletionHandle> Drop for OverlappedEntry<T> {
drop(unsafe { self.packet() });
}
}
struct CallOnDrop<F: FnMut()>(F);
impl<F: FnMut()> Drop for CallOnDrop<F> {
fn drop(&mut self) {
(self.0)();
}
}