浏览代码

LibDraw: Remove convenience functions for the old WindowServer IPC

Andreas Kling 5 年之前
父节点
当前提交
b780dcf353
共有 3 个文件被更改,包括 0 次插入13 次删除
  1. 0 3
      Libraries/LibDraw/Point.h
  2. 0 6
      Libraries/LibDraw/Rect.h
  3. 0 4
      Libraries/LibDraw/Size.h

+ 0 - 3
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; }

+ 0 - 6
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

+ 0 - 4
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); }