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:
Thad House
2016-06-27 13:38:33 -07:00
committed by Peter Johnson
parent 5e2a76147c
commit 77a1af44c4
10 changed files with 0 additions and 30 deletions

View File

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

View File

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