diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-04-07 20:18:58 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-04-07 20:18:58 +0200 |
commit | 31b9d8354e394545ddc64ac72a79c0bbf465127e (patch) | |
tree | 400e1c106569d3e221cbb109cc5cbaf5ac36d3c1 /LibGUI | |
parent | 51b4d3fe5a97dad8c2d701bed214741a200c5c70 (diff) | |
download | serenity-31b9d8354e394545ddc64ac72a79c0bbf465127e.zip |
GIODevice: Remove accidentally committed debug spam.
Diffstat (limited to 'LibGUI')
-rw-r--r-- | LibGUI/GIODevice.cpp | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/LibGUI/GIODevice.cpp b/LibGUI/GIODevice.cpp index 35e042b2cc..1a66fb0f2a 100644 --- a/LibGUI/GIODevice.cpp +++ b/LibGUI/GIODevice.cpp @@ -109,18 +109,12 @@ ByteBuffer GIODevice::read_all() ByteBuffer GIODevice::read_line(int max_size) { - if (m_fd < 0) { - printf("nofd\n"); + if (m_fd < 0) return { }; - } - if (!max_size) { - printf("noms\n"); + if (!max_size) return { }; - } - if (!can_read_line()) { - printf("norl\n"); + if (!can_read_line()) return { }; - } if (m_eof) { if (m_buffered_data.size() > max_size) { printf("GIODevice::read_line: At EOF but there's more than max_size(%d) buffered\n", max_size); @@ -134,7 +128,6 @@ ByteBuffer GIODevice::read_line(int max_size) int line_index = 0; while (line_index < max_size) { byte ch = m_buffered_data[line_index]; - printf("%c", ch); line[line_index++] = ch; if (ch == '\n') { Vector<byte> new_buffered_data; @@ -142,11 +135,9 @@ ByteBuffer GIODevice::read_line(int max_size) m_buffered_data = move(new_buffered_data); line[line_index] = '\0'; line.trim(line_index + 1); - printf("\n"); return line; } } - printf("\nnowork\n"); return { }; } |