You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cg...@apache.org on 2025/03/17 03:45:10 UTC

(plc4x) branch fix/s7subs updated: Clean more code in S7ProtocolLogic.

This is an automated email from the ASF dual-hosted git repository.

cgarcia pushed a commit to branch fix/s7subs
in repository https://gitbox.apache.org/repos/asf/plc4x.git


The following commit(s) were added to refs/heads/fix/s7subs by this push:
     new 406f24b011 Clean more code in S7ProtocolLogic.
406f24b011 is described below

commit 406f24b01158e15a9bd4cb18e8a58450dc049488
Author: César García <ce...@ceos.com.ve>
AuthorDate: Sun Mar 16 23:43:14 2025 -0400

    Clean more code in S7ProtocolLogic.
---
 .../org/apache/plc4x/java/s7/readwrite/protocol/S7ProtocolLogic.java | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/plc4j/drivers/s7/src/main/java/org/apache/plc4x/java/s7/readwrite/protocol/S7ProtocolLogic.java b/plc4j/drivers/s7/src/main/java/org/apache/plc4x/java/s7/readwrite/protocol/S7ProtocolLogic.java
index 01bb347d93..bc671f2da2 100644
--- a/plc4j/drivers/s7/src/main/java/org/apache/plc4x/java/s7/readwrite/protocol/S7ProtocolLogic.java
+++ b/plc4j/drivers/s7/src/main/java/org/apache/plc4x/java/s7/readwrite/protocol/S7ProtocolLogic.java
@@ -130,10 +130,6 @@ public class S7ProtocolLogic extends Plc4xProtocolBase<TPKTPacket> {
     * transferred to the event stack and the value is updated in this HashMap.
     */
     private final Map<Short, S7CyclicEvent> cycChangeValueEvents = new HashMap<>();
-
-    
-    private ConversationContext<TPKTPacket> context;
-    
     private S7DriverContext s7DriverContext;
     private RequestTransactionManager tm;
 
@@ -167,7 +163,6 @@ public class S7ProtocolLogic extends Plc4xProtocolBase<TPKTPacket> {
 
     @Override
     public void onConnect(ConversationContext<TPKTPacket> context) {
-        this.context = context;
         if (context.isPassive()) {
             logger.info("S7 Driver running in PASSIVE mode.");
             s7DriverContext.setPassiveMode(true);