Skip to content

Commit

Permalink
Remove Compressor.Enabled()
Browse files Browse the repository at this point in the history
Deprecated in wpilibsuite#4147
  • Loading branch information
rzblue committed Sep 17, 2023
1 parent 19a8850 commit f224eb3
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 29 deletions.
4 changes: 0 additions & 4 deletions wpilibc/src/main/native/cpp/Compressor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ Compressor::~Compressor() {
}
}

bool Compressor::Enabled() const {
return IsEnabled();
}

bool Compressor::IsEnabled() const {
return m_module->GetCompressor();
}
Expand Down
13 changes: 0 additions & 13 deletions wpilibc/src/main/native/include/frc/Compressor.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
12 changes: 0 additions & 12 deletions wpilibj/src/main/java/edu/wpi/first/wpilibj/Compressor.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,6 @@ public void close() {
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.
*
Expand Down

0 comments on commit f224eb3

Please sign in to comment.