1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-23 23:35:07 +00:00

VFS: Get rid of the deprecated Inode::write(const ByteBuffer&).

Fix the only remaining call site to use Inode::write_bytes().
This commit is contained in:
Andreas Kling 2019-01-23 04:59:47 +01:00
parent 906685e238
commit 07f4c8b01b
6 changed files with 7 additions and 62 deletions

View file

@ -273,13 +273,6 @@ void SynthFSInode::flush_metadata()
{
}
bool SynthFSInode::write(const ByteBuffer& data)
{
if (!m_write_callback)
return 0; // FIXME: -EPERM?
return m_write_callback(*this, data);
}
ssize_t SynthFSInode::write_bytes(Unix::off_t offset, size_t size, const byte* buffer, FileDescriptor*)
{
if (!m_write_callback)