summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-05-07 22:11:50 +0200
committerAndreas Kling <kling@serenityos.org>2021-05-07 22:11:50 +0200
commit406c876fce84b30ae9317be3ce50832bbed2f4b5 (patch)
treeecd4499407079d61f57086bcb804f5ed2c0ee34c /Userland
parentc7e5ef30572b3ec732d76200eab10c166c9594be (diff)
downloadserenity-406c876fce84b30ae9317be3ce50832bbed2f4b5.zip
LibCore: Remove Core::IODevice::printf()
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibCore/IODevice.cpp14
-rw-r--r--Userland/Libraries/LibCore/IODevice.h2
2 files changed, 0 insertions, 16 deletions
diff --git a/Userland/Libraries/LibCore/IODevice.cpp b/Userland/Libraries/LibCore/IODevice.cpp
index ab2362fa0a..8d7c837c44 100644
--- a/Userland/Libraries/LibCore/IODevice.cpp
+++ b/Userland/Libraries/LibCore/IODevice.cpp
@@ -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)
diff --git a/Userland/Libraries/LibCore/IODevice.h b/Userland/Libraries/LibCore/IODevice.h
index ad24977ab0..a61302b0a2 100644
--- a/Userland/Libraries/LibCore/IODevice.h
+++ b/Userland/Libraries/LibCore/IODevice.h
@@ -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); }