Skip to content

Commit b7cca3b

Browse files
committed
Dead code removed
1 parent f0ed111 commit b7cca3b

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

  • org.openhab.binding.simatic/src/main/java/org/openhab/binding/simatic/internal/libnodave

org.openhab.binding.simatic/src/main/java/org/openhab/binding/simatic/internal/libnodave/TCPConnection.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ public int exchange(PDU p1) throws IOException {
175175
*/
176176
@Override
177177
public int connectPLC() throws IOException {
178-
int res;
179178
byte[] b4 = { (byte) 0x11, (byte) 0xE0, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x01, (byte) 0x00,
180179
(byte) 0xC1, (byte) 0x02, (byte) 0x01, (byte) 0x00, (byte) 0xC2, (byte) 0x02, (byte) 0x01, (byte) 0x02,
181180
(byte) 0xC0, (byte) 0x01, (byte) 0x09 };
@@ -193,13 +192,7 @@ public int connectPLC() throws IOException {
193192
if ((Nodave.Debug & Nodave.DEBUG_CONNECT) != 0) {
194193
System.out.println("daveConnectPLC() step 1.");
195194
}
196-
/*
197-
* PDU p = new PDU(msgOut, 7);
198-
* p.initHeader(1);
199-
* p.addParam(b61);
200-
* exchange(p);
201-
* return (0);
202-
*/
195+
203196
return negPDUlengthRequest();
204197
}
205198
}

0 commit comments

Comments
 (0)