mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 00:27:43 +00:00
LibCore: Remove Core::IODevice::printf()
This commit is contained in:
parent
c7e5ef3057
commit
406c876fce
2 changed files with 0 additions and 16 deletions
|
@ -5,7 +5,6 @@
|
|||
*/
|
||||
|
||||
#include <AK/ByteBuffer.h>
|
||||
#include <AK/PrintfImplementation.h>
|
||||
#include <LibCore/IODevice.h>
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
|
@ -271,19 +270,6 @@ bool IODevice::write(const u8* data, int size)
|
|||
return rc == size;
|
||||
}
|
||||
|
||||
int IODevice::printf(const char* format, ...)
|
||||
{
|
||||
va_list ap;
|
||||
va_start(ap, format);
|
||||
// FIXME: We're not propagating write() failures to client here!
|
||||
int ret = printf_internal([this](char*&, char ch) {
|
||||
write((const u8*)&ch, 1);
|
||||
},
|
||||
nullptr, format, ap);
|
||||
va_end(ap);
|
||||
return ret;
|
||||
}
|
||||
|
||||
void IODevice::set_fd(int fd)
|
||||
{
|
||||
if (m_fd == fd)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue