1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 12:47:35 +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:
Andrew Kaster 2022-04-09 16:02:13 -06:00 committed by Brian Gianforcaro
parent 83603d68d2
commit f1d47ea618
4 changed files with 0 additions and 23 deletions

View file

@ -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);