[wpilib] Remove deprecated SetHandler function (#6556)

This commit is contained in:
Isaac Turner
2024-04-30 12:03:45 +08:00
committed by GitHub
parent 0f8aa8aedf
commit 9cae707065
3 changed files with 0 additions and 30 deletions

View File

@@ -161,11 +161,6 @@ void Notifier::SetName(std::string_view name) {
HAL_SetNotifierName(m_notifier, buf.data(), &status);
}
void Notifier::SetHandler(std::function<void()> callback) {
std::scoped_lock lock(m_processMutex);
m_callback = callback;
}
void Notifier::SetCallback(std::function<void()> callback) {
std::scoped_lock lock(m_processMutex);
m_callback = callback;

View File

@@ -82,15 +82,6 @@ class Notifier {
*/
void SetName(std::string_view name);
/**
* Change the callback function.
*
* @param callback The callback function.
* @deprecated Use SetCallback() instead.
*/
[[deprecated("Use SetCallback() instead.")]]
void SetHandler(std::function<void()> callback);
/**
* Change the callback function.
*

View File

@@ -155,22 +155,6 @@ public class Notifier implements AutoCloseable {
NotifierJNI.setNotifierName(m_notifier.get(), name);
}
/**
* Change the callback function.
*
* @param callback The callback function.
* @deprecated Use setCallback() instead.
*/
@Deprecated(forRemoval = true, since = "2024")
public void setHandler(Runnable callback) {
m_processLock.lock();
try {
m_callback = callback;
} finally {
m_processLock.unlock();
}
}
/**
* Change the callback function.
*