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
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

@ -7,13 +7,11 @@
#pragma once
#include <AK/Badge.h>
#include <AK/BufferedStream.h>
#include <AK/Noncopyable.h>
#include <AK/NonnullOwnPtr.h>
#include <AK/Stream.h>
#include <LibCore/Forward.h>
#include <LibIPC/Forward.h>
namespace Core {
@ -77,8 +75,7 @@ public:
// See also Socket::set_blocking.
ErrorOr<void> set_blocking(bool enabled);
template<OneOf<::IPC::File, ::Core::MappedFile> VIP>
int leak_fd(Badge<VIP>)
int leak_fd()
{
m_should_close_file_descriptor = ShouldCloseFileDescriptor::No;
return m_fd;