mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 00:57:44 +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
|
@ -24,7 +24,6 @@
|
|||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <AK/LogStream.h>
|
||||
#include <AK/Optional.h>
|
||||
#include <LibGfx/AffineTransform.h>
|
||||
#include <LibGfx/Rect.h>
|
||||
|
@ -158,18 +157,4 @@ IntRect AffineTransform::map(const IntRect& rect) const
|
|||
return enclosing_int_rect(map(FloatRect(rect)));
|
||||
}
|
||||
|
||||
const LogStream& operator<<(const LogStream& stream, const AffineTransform& value)
|
||||
{
|
||||
if (value.is_identity())
|
||||
return stream << "{ Identity }";
|
||||
|
||||
return stream << "{ "
|
||||
<< value.a() << ", "
|
||||
<< value.b() << ", "
|
||||
<< value.c() << ", "
|
||||
<< value.d() << ", "
|
||||
<< value.e() << ", "
|
||||
<< value.f() << " }";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/Forward.h>
|
||||
#include <AK/LogStream.h>
|
||||
#include <LibGfx/Forward.h>
|
||||
|
||||
namespace Gfx {
|
||||
|
@ -76,6 +75,4 @@ private:
|
|||
float m_values[6] { 0 };
|
||||
};
|
||||
|
||||
const LogStream& operator<<(const LogStream&, const AffineTransform&);
|
||||
|
||||
}
|
||||
|
|
|
@ -328,10 +328,6 @@ Optional<Color> Color::from_string(const StringView& string)
|
|||
return Color(r.value(), g.value(), b.value(), a.value());
|
||||
}
|
||||
|
||||
const LogStream& operator<<(const LogStream& stream, Color value)
|
||||
{
|
||||
return stream << value.to_string();
|
||||
}
|
||||
}
|
||||
|
||||
bool IPC::encode(IPC::Encoder& encoder, const Color& color)
|
||||
|
|
|
@ -404,8 +404,6 @@ inline constexpr Color::Color(NamedColor named)
|
|||
m_value = 0xff000000 | (rgb.r << 16) | (rgb.g << 8) | rgb.b;
|
||||
}
|
||||
|
||||
const LogStream& operator<<(const LogStream&, Color);
|
||||
|
||||
}
|
||||
|
||||
using Gfx::Color;
|
||||
|
|
|
@ -212,9 +212,4 @@ private:
|
|||
Optional<Gfx::FloatRect> m_bounding_box;
|
||||
};
|
||||
|
||||
inline const LogStream& operator<<(const LogStream& stream, const Path& path)
|
||||
{
|
||||
return stream << path.to_string();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -228,12 +228,6 @@ private:
|
|||
T m_y { 0 };
|
||||
};
|
||||
|
||||
template<typename T>
|
||||
const LogStream& operator<<(const LogStream& stream, const Point<T>& point)
|
||||
{
|
||||
return stream << point.to_string();
|
||||
}
|
||||
|
||||
using IntPoint = Point<int>;
|
||||
using FloatPoint = Point<float>;
|
||||
|
||||
|
|
|
@ -478,12 +478,6 @@ private:
|
|||
Size<T> m_size;
|
||||
};
|
||||
|
||||
template<typename T>
|
||||
const LogStream& operator<<(const LogStream& stream, const Rect<T>& rect)
|
||||
{
|
||||
return stream << rect.to_string();
|
||||
}
|
||||
|
||||
using IntRect = Rect<int>;
|
||||
using FloatRect = Rect<float>;
|
||||
|
||||
|
|
|
@ -150,12 +150,6 @@ private:
|
|||
T m_height { 0 };
|
||||
};
|
||||
|
||||
template<typename T>
|
||||
const LogStream& operator<<(const LogStream& stream, const Gfx::Size<T>& size)
|
||||
{
|
||||
return stream << size.to_string();
|
||||
}
|
||||
|
||||
using IntSize = Size<int>;
|
||||
using FloatSize = Size<float>;
|
||||
|
||||
|
|
|
@ -34,9 +34,4 @@ String Triangle::to_string() const
|
|||
return String::formatted("({},{},{})", m_a, m_b, m_c);
|
||||
}
|
||||
|
||||
const LogStream& operator<<(const LogStream& stream, const Triangle& value)
|
||||
{
|
||||
return stream << value.to_string();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -76,6 +76,4 @@ private:
|
|||
IntPoint m_c;
|
||||
};
|
||||
|
||||
const LogStream& operator<<(const LogStream&, const Triangle&);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue