mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:47:45 +00:00
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.
This commit is contained in:
parent
83603d68d2
commit
f1d47ea618
4 changed files with 0 additions and 23 deletions
|
@ -68,11 +68,6 @@ public:
|
||||||
return { Type::Number, m_value / other.m_value };
|
return { Type::Number, m_value / other.m_value };
|
||||||
}
|
}
|
||||||
|
|
||||||
auto operator<=>(Number const& other) const
|
|
||||||
{
|
|
||||||
return m_value - other.m_value;
|
|
||||||
}
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
float m_value { 0 };
|
float m_value { 0 };
|
||||||
Type m_type;
|
Type m_type;
|
||||||
|
|
|
@ -27,9 +27,4 @@ String Ratio::to_string() const
|
||||||
return String::formatted("{} / {}", m_first_value, m_second_value);
|
return String::formatted("{} / {}", m_first_value, m_second_value);
|
||||||
}
|
}
|
||||||
|
|
||||||
auto Ratio::operator<=>(Ratio const& other) const
|
|
||||||
{
|
|
||||||
return value() - other.value();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,7 +18,6 @@ public:
|
||||||
bool is_degenerate() const;
|
bool is_degenerate() const;
|
||||||
|
|
||||||
String to_string() const;
|
String to_string() const;
|
||||||
auto operator<=>(Ratio const& other) const;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
float m_first_value { 0 };
|
float m_first_value { 0 };
|
||||||
|
|
|
@ -7,8 +7,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "Mixer.h"
|
#include "Mixer.h"
|
||||||
#include <compare>
|
|
||||||
|
|
||||||
namespace AudioServer {
|
namespace AudioServer {
|
||||||
|
|
||||||
// This is in buffer counts.
|
// This is in buffer counts.
|
||||||
|
@ -52,16 +50,6 @@ public:
|
||||||
return m_old_value * (1 - m_current_fade) + m_new_value * (m_current_fade);
|
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()
|
void advance_time()
|
||||||
{
|
{
|
||||||
m_current_fade += 1.0 / static_cast<double>(m_fade_time);
|
m_current_fade += 1.0 / static_cast<double>(m_fade_time);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue