LibDraw: Remove convenience functions for the old WindowServer IPC

This commit is contained in:
Andreas Kling 2019-12-02 10:58:01 +01:00
parent 86504f4461
commit b780dcf353
Notes: sideshowbarker 2024-07-19 10:59:42 +09:00
3 changed files with 0 additions and 13 deletions

View file

@ -5,7 +5,6 @@
#include <LibDraw/Orientation.h>
class Rect;
struct WSAPI_Point;
class Point {
public:
@ -15,7 +14,6 @@ public:
, m_y(y)
{
}
Point(const WSAPI_Point&);
int x() const { return m_x; }
int y() const { return m_y; }
@ -79,7 +77,6 @@ public:
}
Point operator+(const Point& other) const { return { m_x + other.m_x, m_y + other.m_y }; }
operator WSAPI_Point() const;
String to_string() const { return String::format("[%d,%d]", x(), y()); }
bool is_null() const { return !m_x && !m_y; }

View file

@ -7,8 +7,6 @@
#include <LibDraw/Size.h>
#include <LibDraw/TextAlignment.h>
struct WSAPI_Rect;
class Rect {
public:
Rect() {}
@ -28,8 +26,6 @@ public:
{
}
Rect(const WSAPI_Rect&);
bool is_null() const
{
return width() == 0 && height() == 0;
@ -227,8 +223,6 @@ public:
Vector<Rect, 4> shatter(const Rect& hammer) const;
operator WSAPI_Rect() const;
bool operator==(const Rect& other) const
{
return m_location == other.m_location

View file

@ -4,8 +4,6 @@
#include <AK/LogStream.h>
#include <LibDraw/Orientation.h>
struct WSAPI_Size;
class Size {
public:
Size() {}
@ -14,7 +12,6 @@ public:
, m_height(h)
{
}
Size(const WSAPI_Size&);
bool is_null() const { return !m_width && !m_height; }
bool is_empty() const { return m_width <= 0 || m_height <= 0; }
@ -77,7 +74,6 @@ public:
set_height(value);
}
operator WSAPI_Size() const;
String to_string() const { return String::format("[%dx%d]", m_width, m_height); }