LibCore+LibIPC: Remove badge on File::leak_fd

This removes a dependency on LibIPC from LibCore.
This commit is contained in:
rmg-x 2025-06-13 18:19:04 -05:00 committed by Tim Flynn
parent d06809dee6
commit 18f28f398b
Notes: github-actions[bot] 2025-06-14 20:04:46 +00:00
3 changed files with 3 additions and 6 deletions

View file

@ -22,7 +22,7 @@ ErrorOr<NonnullOwnPtr<MappedFile>> MappedFile::map(StringView path, Mode mode)
ErrorOr<NonnullOwnPtr<MappedFile>> MappedFile::map_from_file(NonnullOwnPtr<Core::File> stream, StringView path)
{
return map_from_fd_and_close(stream->leak_fd(Badge<MappedFile> {}), path);
return map_from_fd_and_close(stream->leak_fd(), path);
}
ErrorOr<NonnullOwnPtr<MappedFile>> MappedFile::map_from_fd_and_close(int fd, [[maybe_unused]] StringView path, Mode mode)