mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-30 02:31:44 +00:00
[ntcore] remove deprecated flag (#6551)
This commit is contained in:
@@ -15,14 +15,6 @@ import java.nio.ByteBuffer;
|
||||
*/
|
||||
@SuppressWarnings("UnnecessaryParentheses")
|
||||
public final class NetworkTableEntry implements Publisher, Subscriber {
|
||||
/**
|
||||
* Flag values (as returned by {@link #getFlags()}).
|
||||
*
|
||||
* @deprecated Use isPersistent() instead.
|
||||
*/
|
||||
@Deprecated(since = "2022", forRemoval = true)
|
||||
public static final int kPersistent = 0x01;
|
||||
|
||||
/**
|
||||
* Construct from native handle.
|
||||
*
|
||||
@@ -114,17 +106,6 @@ public final class NetworkTableEntry implements Publisher, Subscriber {
|
||||
return NetworkTableType.getFromInt(NetworkTablesJNI.getType(m_handle));
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the flags.
|
||||
*
|
||||
* @return the flags (bitmask)
|
||||
* @deprecated Use isPersistent() or topic properties instead
|
||||
*/
|
||||
@Deprecated(since = "2022", forRemoval = true)
|
||||
public int getFlags() {
|
||||
return NetworkTablesJNI.getEntryFlags(m_handle);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the last time the entry's value was changed.
|
||||
*
|
||||
@@ -935,28 +916,6 @@ public final class NetworkTableEntry implements Publisher, Subscriber {
|
||||
return setDoubleArray(NetworkTableValue.toNativeDoubleArray(value));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets flags.
|
||||
*
|
||||
* @param flags the flags to set (bitmask)
|
||||
* @deprecated Use setPersistent() or topic properties instead
|
||||
*/
|
||||
@Deprecated(since = "2022", forRemoval = true)
|
||||
public void setFlags(int flags) {
|
||||
NetworkTablesJNI.setEntryFlags(m_handle, getFlags() | flags);
|
||||
}
|
||||
|
||||
/**
|
||||
* Clears flags.
|
||||
*
|
||||
* @param flags the flags to clear (bitmask)
|
||||
* @deprecated Use setPersistent() or topic properties instead
|
||||
*/
|
||||
@Deprecated(since = "2022", forRemoval = true)
|
||||
public void clearFlags(int flags) {
|
||||
NetworkTablesJNI.setEntryFlags(m_handle, getFlags() & ~flags);
|
||||
}
|
||||
|
||||
/** Make value persistent through program restarts. */
|
||||
public void setPersistent() {
|
||||
NetworkTablesJNI.setTopicPersistent(m_topic.getHandle(), true);
|
||||
|
||||
Reference in New Issue
Block a user