mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Remove commented out lines
This commit is contained in:
@@ -186,8 +186,6 @@ public class Serial implements SerialPortEventListener {
|
||||
|
||||
|
||||
public static Map<String, String> getProperties(String portName) {
|
||||
//SerialPortList list = new SerialPortList();
|
||||
//return list.getPortProperties(portName);
|
||||
return SerialPortList.getPortProperties(portName);
|
||||
}
|
||||
|
||||
@@ -214,8 +212,6 @@ public class Serial implements SerialPortEventListener {
|
||||
public static String[] list() {
|
||||
// returns list sorted alphabetically, thus cu.* comes before tty.*
|
||||
// this was different with RXTX
|
||||
//SerialPortList list = new SerialPortList();
|
||||
//return list.getPortNames();
|
||||
return SerialPortList.getPortNames();
|
||||
}
|
||||
|
||||
@@ -457,4 +453,4 @@ public class Serial implements SerialPortEventListener {
|
||||
throw new RuntimeException("Error writing to serial port " + e.getPortName() + ": " + e.getExceptionType());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user