mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
[wpilib] Remove deprecated SetHandler function (#6556)
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user