Remove deprecated free() calls (#1925)

Replaced with the standard close()
This commit is contained in:
Thad House
2019-10-08 21:30:33 -07:00
committed by Peter Johnson
parent 7f839b87ce
commit 0e3b0f3da7
9 changed files with 4 additions and 49 deletions

View File

@@ -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);

View File

@@ -105,10 +105,6 @@ public abstract class RobotBase implements AutoCloseable {
return m_threadId;
}
@Deprecated
public void free() {
}
@Override
public void close() {
}

View File

@@ -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.
*/

View File

@@ -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) {