[wpilib] Remove Compressor.Enabled() (#5649)

Deprecated in #4147
This commit is contained in:
Ryan Blue
2023-09-17 01:04:46 -04:00
committed by GitHub
parent 4da5aee88a
commit 94f58cc536
3 changed files with 0 additions and 29 deletions

View File

@@ -34,10 +34,6 @@ Compressor::~Compressor() {
}
}
bool Compressor::Enabled() const {
return IsEnabled();
}
bool Compressor::IsEnabled() const {
return m_module->GetCompressor();
}

View File

@@ -57,19 +57,6 @@ class Compressor : public wpi::Sendable,
Compressor(Compressor&&) = default;
Compressor& operator=(Compressor&&) = default;
/**
* Check if compressor output is active.
* To (re)enable the compressor use EnableDigital() or EnableAnalog(...).
*
* @return true if the compressor is on.
* @deprecated To avoid confusion in thinking this (re)enables the compressor
* use IsEnabled().
*/
[[deprecated(
"To avoid confusion in thinking this (re)enables the compressor use "
"IsEnabled()")]]
bool Enabled() const;
/**
* Returns whether the compressor is active or not.
*

View File

@@ -62,18 +62,6 @@ public class Compressor implements Sendable, AutoCloseable {
m_module = null;
}
/**
* Get the status of the compressor. To (re)enable the compressor use enableDigital() or
* enableAnalog(...).
*
* @return true if the compressor is on
* @deprecated To avoid confusion in thinking this (re)enables the compressor use IsEnabled().
*/
@Deprecated(since = "2023", forRemoval = true)
public boolean enabled() {
return isEnabled();
}
/**
* Returns whether the compressor is active or not.
*