mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 21:08:12 +00:00
LibGUI: Remove temporary compatibility measures for new layout system
This commit is contained in:
parent
b8aa0037a8
commit
68ad5f3780
3 changed files with 6 additions and 23 deletions
|
@ -42,12 +42,6 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
// This is a temporary hack to get this compiling
|
||||
operator int() const
|
||||
{
|
||||
return m_value;
|
||||
}
|
||||
|
||||
[[nodiscard]] inline bool is_special_value() const
|
||||
{
|
||||
return m_value < 0;
|
||||
|
@ -154,11 +148,6 @@ public:
|
|||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
||||
operator AK::JsonValue() const
|
||||
{
|
||||
return this->as_json_value();
|
||||
}
|
||||
|
||||
[[nodiscard]] static Optional<UIDimension> construct_from_json_value(AK::JsonValue const value)
|
||||
{
|
||||
if (value.is_string()) {
|
||||
|
@ -181,12 +170,6 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
// FIXME: Remove these following methods when the move to the new layout system is completed
|
||||
[[nodiscard]] inline bool operator==(int other) const
|
||||
{
|
||||
return m_value == other;
|
||||
}
|
||||
|
||||
private:
|
||||
int m_value;
|
||||
};
|
||||
|
@ -235,7 +218,7 @@ public:
|
|||
return (width() == to_match || height() == to_match);
|
||||
}
|
||||
|
||||
operator Gfx::IntSize() const
|
||||
explicit operator Gfx::IntSize() const
|
||||
{
|
||||
return Gfx::IntSize(width().as_int(), height().as_int());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue