mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-26 01:51:41 +00:00
Removes freePort from the HAL (#116)
It was a no-op, and most likely in the future it will be that way too. Removing to clean up the API.
This commit is contained in:
committed by
Peter Johnson
parent
5e2a76147c
commit
77a1af44c4
@@ -37,7 +37,6 @@ public class AnalogOutput extends SensorBase implements LiveWindowSendable {
|
||||
|
||||
final int portHandle = AnalogJNI.getPort((byte) channel);
|
||||
m_port = AnalogJNI.initializeAnalogOutputPort(portHandle);
|
||||
AnalogJNI.freePort(portHandle);
|
||||
|
||||
LiveWindow.addSensor("AnalogOutput", channel, this);
|
||||
UsageReporting.report(tResourceType.kResourceType_AnalogOutput, channel);
|
||||
|
||||
@@ -62,6 +62,4 @@ public class JNIWrapper {
|
||||
public static native int getPortWithModule(byte module, byte pin);
|
||||
|
||||
public static native int getPort(byte pin);
|
||||
|
||||
public static native void freePort(int halPortHandle);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user