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

remm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/main by this push:
     new 8cb16cd40b Remove useless code
8cb16cd40b is described below

commit 8cb16cd40bc32bcf4fe693f78edf723a95b2a08b
Author: remm <r...@apache.org>
AuthorDate: Fri Sep 22 09:08:25 2023 +0200

    Remove useless code
    
    Found by coverity.
---
 java/org/apache/catalina/ha/session/DeltaRequest.java | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/java/org/apache/catalina/ha/session/DeltaRequest.java 
b/java/org/apache/catalina/ha/session/DeltaRequest.java
index 7daadae0fe..412d5513a3 100644
--- a/java/org/apache/catalina/ha/session/DeltaRequest.java
+++ b/java/org/apache/catalina/ha/session/DeltaRequest.java
@@ -289,11 +289,6 @@ public class DeltaRequest implements Externalizable {
         sessionId = in.readUTF();
         recordAllActions = in.readBoolean();
         int cnt = in.readInt();
-        if (actions == null) {
-            actions = new ArrayDeque<>();
-        } else {
-            actions.clear();
-        }
         for (int i = 0; i < cnt; i++) {
             AttributeInfo info = null;
             if (this.actionPool.size() > 0) {


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to