mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:27:35 +00:00
Everywhere: Remove klog(), dbg() and purge all LogStream usage :^)
Good-bye LogStream. Long live AK::Format!
This commit is contained in:
parent
423ed53396
commit
ef1e5db1d0
209 changed files with 164 additions and 837 deletions
|
@ -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 {
|
||||
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -76,8 +76,6 @@ private:
|
|||
void* m_internal_data { nullptr };
|
||||
};
|
||||
|
||||
const LogStream& operator<<(const LogStream&, const ModelIndex&);
|
||||
|
||||
}
|
||||
|
||||
namespace AK {
|
||||
|
|
|
@ -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<>
|
||||
|
|
|
@ -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<>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue