diff options
author | Andreas Kling <kling@serenityos.org> | 2021-03-12 17:29:37 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-03-12 17:29:37 +0100 |
commit | ef1e5db1d063f55e57b1d7623ea7154583fc95ad (patch) | |
tree | fb92514e07f4017cb899258137c817c07da9d5c5 /Userland/Libraries/LibGUI | |
parent | 423ed5339651a2646c64ee4fd7b3b32bb7f8c942 (diff) | |
download | serenity-ef1e5db1d063f55e57b1d7623ea7154583fc95ad.zip |
Everywhere: Remove klog(), dbg() and purge all LogStream usage :^)
Good-bye LogStream. Long live AK::Format!
Diffstat (limited to 'Userland/Libraries/LibGUI')
-rw-r--r-- | Userland/Libraries/LibGUI/FileIconProvider.cpp | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibGUI/ModelIndex.cpp | 7 | ||||
-rw-r--r-- | Userland/Libraries/LibGUI/ModelIndex.h | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibGUI/TextPosition.h | 8 | ||||
-rw-r--r-- | Userland/Libraries/LibGUI/TextRange.h | 8 |
5 files changed, 1 insertions, 26 deletions
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 <AK/MappedFile.h> #include <AK/String.h> #include <LibCore/ConfigFile.h> -#include <LibCore/DirIterator.h> #include <LibCore/File.h> #include <LibCore/StandardPaths.h> #include <LibELF/Image.h> @@ -38,6 +37,7 @@ #include <LibGfx/Bitmap.h> #include <LibGfx/PNGLoader.h> #include <sys/stat.h> +#include <unistd.h> 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 <AK/LogStream.h> #include <AK/String.h> 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 <AK/LogStream.h> #include <LibGUI/TextPosition.h> 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<> |