summaryrefslogtreecommitdiff
path: root/Libraries/LibDraw
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-12-02 10:58:01 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-12-02 11:11:05 +0100
commitb780dcf3534591e8ecf2f54d4fc816c0d56808be (patch)
tree10ec591d19e229b1644289574d4984cfc8cba79f /Libraries/LibDraw
parent86504f446108577c5a7811e551c64afb8e54da89 (diff)
downloadserenity-b780dcf3534591e8ecf2f54d4fc816c0d56808be.zip
LibDraw: Remove convenience functions for the old WindowServer IPC
Diffstat (limited to 'Libraries/LibDraw')
-rw-r--r--Libraries/LibDraw/Point.h3
-rw-r--r--Libraries/LibDraw/Rect.h6
-rw-r--r--Libraries/LibDraw/Size.h4
3 files changed, 0 insertions, 13 deletions
diff --git a/Libraries/LibDraw/Point.h b/Libraries/LibDraw/Point.h
index bca61f067b..6c958143f9 100644
--- a/Libraries/LibDraw/Point.h
+++ b/Libraries/LibDraw/Point.h
@@ -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; }
diff --git a/Libraries/LibDraw/Rect.h b/Libraries/LibDraw/Rect.h
index 1b023615f4..e496e4de9b 100644
--- a/Libraries/LibDraw/Rect.h
+++ b/Libraries/LibDraw/Rect.h
@@ -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
diff --git a/Libraries/LibDraw/Size.h b/Libraries/LibDraw/Size.h
index 2b7d59c380..95552c91d4 100644
--- a/Libraries/LibDraw/Size.h
+++ b/Libraries/LibDraw/Size.h
@@ -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); }