diff options
author | Andrew Kaster <andrewdkaster@gmail.com> | 2022-04-09 16:02:13 -0600 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2022-04-23 10:43:32 -0700 |
commit | f1d47ea618b9c8be9a448ec1130099b0985d3630 (patch) | |
tree | 2ff3d980e271cfe499c75cc431fbb14906e500fb | |
parent | 83603d68d2e6fe51673c9857b459138df761327a (diff) | |
download | serenity-f1d47ea618b9c8be9a448ec1130099b0985d3630.zip |
LibWeb+AudioServer: Remove unused spaceship operators
We aren't actually using these for anything, and the spaceship operator
requires ``<compare>`` from the STL, which we'd rather not include.
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/Number.h | 5 | ||||
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/Ratio.cpp | 5 | ||||
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/Ratio.h | 1 | ||||
-rw-r--r-- | Userland/Services/AudioServer/FadingProperty.h | 12 |
4 files changed, 0 insertions, 23 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/Number.h b/Userland/Libraries/LibWeb/CSS/Number.h index e24f9e584b..3d78e28e78 100644 --- a/Userland/Libraries/LibWeb/CSS/Number.h +++ b/Userland/Libraries/LibWeb/CSS/Number.h @@ -68,11 +68,6 @@ public: return { Type::Number, m_value / other.m_value }; } - auto operator<=>(Number const& other) const - { - return m_value - other.m_value; - } - private: float m_value { 0 }; Type m_type; diff --git a/Userland/Libraries/LibWeb/CSS/Ratio.cpp b/Userland/Libraries/LibWeb/CSS/Ratio.cpp index b2a46b766a..1271f60d82 100644 --- a/Userland/Libraries/LibWeb/CSS/Ratio.cpp +++ b/Userland/Libraries/LibWeb/CSS/Ratio.cpp @@ -27,9 +27,4 @@ String Ratio::to_string() const return String::formatted("{} / {}", m_first_value, m_second_value); } -auto Ratio::operator<=>(Ratio const& other) const -{ - return value() - other.value(); -} - } diff --git a/Userland/Libraries/LibWeb/CSS/Ratio.h b/Userland/Libraries/LibWeb/CSS/Ratio.h index 724530ba50..ea63a22919 100644 --- a/Userland/Libraries/LibWeb/CSS/Ratio.h +++ b/Userland/Libraries/LibWeb/CSS/Ratio.h @@ -18,7 +18,6 @@ public: bool is_degenerate() const; String to_string() const; - auto operator<=>(Ratio const& other) const; private: float m_first_value { 0 }; diff --git a/Userland/Services/AudioServer/FadingProperty.h b/Userland/Services/AudioServer/FadingProperty.h index 7f20942713..fb37dffd3d 100644 --- a/Userland/Services/AudioServer/FadingProperty.h +++ b/Userland/Services/AudioServer/FadingProperty.h @@ -7,8 +7,6 @@ #pragma once #include "Mixer.h" -#include <compare> - namespace AudioServer { // This is in buffer counts. @@ -52,16 +50,6 @@ public: return m_old_value * (1 - m_current_fade) + m_new_value * (m_current_fade); } - auto operator<=>(FadingProperty<T> const& other) const - { - return static_cast<T>(this) <=> static_cast<T>(other); - } - - auto operator<=>(T const& other) const - { - return static_cast<T>(*this) <=> other; - } - void advance_time() { m_current_fade += 1.0 / static_cast<double>(m_fade_time); |