mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
Remove deprecated free() calls (#1925)
Replaced with the standard close()
This commit is contained in:
committed by
Peter Johnson
parent
7f839b87ce
commit
0e3b0f3da7
@@ -53,11 +53,6 @@ public class I2C implements AutoCloseable {
|
||||
HAL.report(tResourceType.kResourceType_I2C, deviceAddress);
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public void free() {
|
||||
close();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void close() {
|
||||
I2CJNI.i2CClose(m_port);
|
||||
|
||||
@@ -105,10 +105,6 @@ public abstract class RobotBase implements AutoCloseable {
|
||||
return m_threadId;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public void free() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void close() {
|
||||
}
|
||||
|
||||
@@ -653,11 +653,6 @@ public class RobotDrive extends MotorSafety implements AutoCloseable {
|
||||
m_maxOutput = maxOutput;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public void free() {
|
||||
close();
|
||||
}
|
||||
|
||||
/**
|
||||
* Free the speed controllers if they were allocated locally.
|
||||
*/
|
||||
|
||||
@@ -50,12 +50,6 @@ public class SPI implements AutoCloseable {
|
||||
HAL.report(tResourceType.kResourceType_SPI, port.value);
|
||||
}
|
||||
|
||||
|
||||
@Deprecated
|
||||
public void free() {
|
||||
close();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void close() {
|
||||
if (m_accum != null) {
|
||||
|
||||
Reference in New Issue
Block a user