You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2023/09/22 07:10:11 UTC
[tomcat] branch 10.1.x updated: Remove useless code
This is an automated email from the ASF dual-hosted git repository.
remm pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push:
new 463861bedc Remove useless code
463861bedc is described below
commit 463861bedc1914bb1a1da6ad35347f1ac09b180b
Author: remm <re...@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org