mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:47:46 +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)
|
||||
|
|
|
@ -84,8 +84,6 @@ public:
|
|||
virtual bool open(IODevice::OpenMode) = 0;
|
||||
virtual bool close();
|
||||
|
||||
int printf(const char*, ...);
|
||||
|
||||
LineIterator line_begin() & { return LineIterator(*this); }
|
||||
LineIterator line_end() { return LineIterator(*this, true); }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue