Skip to content

Commit 485ccab

Browse files
committed
Remove commented out lines
1 parent 434bba6 commit 485ccab

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

java/libraries/serial/src/processing/serial/Serial.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,6 @@ public boolean getDSR() {
186186

187187

188188
public static Map<String, String> getProperties(String portName) {
189-
//SerialPortList list = new SerialPortList();
190-
//return list.getPortProperties(portName);
191189
return SerialPortList.getPortProperties(portName);
192190
}
193191

@@ -214,8 +212,6 @@ public char lastChar() {
214212
public static String[] list() {
215213
// returns list sorted alphabetically, thus cu.* comes before tty.*
216214
// this was different with RXTX
217-
//SerialPortList list = new SerialPortList();
218-
//return list.getPortNames();
219215
return SerialPortList.getPortNames();
220216
}
221217

@@ -457,4 +453,4 @@ public void write(String src) {
457453
throw new RuntimeException("Error writing to serial port " + e.getPortName() + ": " + e.getExceptionType());
458454
}
459455
}
460-
}
456+
}

0 commit comments

Comments
 (0)