From ef1e5db1d063f55e57b1d7623ea7154583fc95ad Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 12 Mar 2021 17:29:37 +0100 Subject: Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) Good-bye LogStream. Long live AK::Format! --- Userland/Libraries/LibGUI/FileIconProvider.cpp | 2 +- Userland/Libraries/LibGUI/ModelIndex.cpp | 7 ------- Userland/Libraries/LibGUI/ModelIndex.h | 2 -- Userland/Libraries/LibGUI/TextPosition.h | 8 -------- Userland/Libraries/LibGUI/TextRange.h | 8 -------- 5 files changed, 1 insertion(+), 26 deletions(-) (limited to 'Userland/Libraries/LibGUI') diff --git a/Userland/Libraries/LibGUI/FileIconProvider.cpp b/Userland/Libraries/LibGUI/FileIconProvider.cpp index ed585e9dc2..a56d638699 100644 --- a/Userland/Libraries/LibGUI/FileIconProvider.cpp +++ b/Userland/Libraries/LibGUI/FileIconProvider.cpp @@ -28,7 +28,6 @@ #include #include #include -#include #include #include #include @@ -38,6 +37,7 @@ #include #include #include +#include namespace GUI { diff --git a/Userland/Libraries/LibGUI/ModelIndex.cpp b/Userland/Libraries/LibGUI/ModelIndex.cpp index 038974d1d4..bde5177596 100644 --- a/Userland/Libraries/LibGUI/ModelIndex.cpp +++ b/Userland/Libraries/LibGUI/ModelIndex.cpp @@ -39,11 +39,4 @@ Variant ModelIndex::data(ModelRole role) const return model()->data(*this, role); } -const LogStream& operator<<(const LogStream& stream, const ModelIndex& value) -{ - if (value.internal_data()) - return stream << String::formatted("ModelIndex({},{},{:p})", value.row(), value.column(), value.internal_data()); - return stream << String::formatted("ModelIndex({},{})", value.row(), value.column()); -} - } diff --git a/Userland/Libraries/LibGUI/ModelIndex.h b/Userland/Libraries/LibGUI/ModelIndex.h index 4d6d49a92b..9a1ff1d6fd 100644 --- a/Userland/Libraries/LibGUI/ModelIndex.h +++ b/Userland/Libraries/LibGUI/ModelIndex.h @@ -76,8 +76,6 @@ private: void* m_internal_data { nullptr }; }; -const LogStream& operator<<(const LogStream&, const ModelIndex&); - } namespace AK { diff --git a/Userland/Libraries/LibGUI/TextPosition.h b/Userland/Libraries/LibGUI/TextPosition.h index 47ccc71e47..c744307d93 100644 --- a/Userland/Libraries/LibGUI/TextPosition.h +++ b/Userland/Libraries/LibGUI/TextPosition.h @@ -26,7 +26,6 @@ #pragma once -#include #include namespace GUI { @@ -57,13 +56,6 @@ private: size_t m_column { 0xffffffff }; }; -inline const LogStream& operator<<(const LogStream& stream, const TextPosition& value) -{ - if (!value.is_valid()) - return stream << "GUI::TextPosition(Invalid)"; - return stream << String::formatted("({},{})", value.line(), value.column()); -} - } template<> diff --git a/Userland/Libraries/LibGUI/TextRange.h b/Userland/Libraries/LibGUI/TextRange.h index ea6918c0f4..55e5378d52 100644 --- a/Userland/Libraries/LibGUI/TextRange.h +++ b/Userland/Libraries/LibGUI/TextRange.h @@ -26,7 +26,6 @@ #pragma once -#include #include namespace GUI { @@ -85,13 +84,6 @@ private: TextPosition m_end; }; -inline const LogStream& operator<<(const LogStream& stream, const TextRange& value) -{ - if (!value.is_valid()) - return stream << "GUI::TextRange(Invalid)"; - return stream << value.start() << '-' << value.end(); -} - } template<> -- cgit v1.2.3