You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2023/04/17 12:52:40 UTC

[camel] 01/03: (chores) camel-xml-io: removed unused variables/assignments

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

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

commit 30980664eb60d2b1d3a6adb01af822dbcff9f145
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Mon Apr 17 12:54:01 2023 +0200

    (chores) camel-xml-io: removed unused variables/assignments
---
 .../src/main/java/org/apache/camel/xml/LwModelToXMLDumper.java           | 1 -
 1 file changed, 1 deletion(-)

diff --git a/core/camel-xml-io/src/main/java/org/apache/camel/xml/LwModelToXMLDumper.java b/core/camel-xml-io/src/main/java/org/apache/camel/xml/LwModelToXMLDumper.java
index 4809350fae1..7f02740836b 100644
--- a/core/camel-xml-io/src/main/java/org/apache/camel/xml/LwModelToXMLDumper.java
+++ b/core/camel-xml-io/src/main/java/org/apache/camel/xml/LwModelToXMLDumper.java
@@ -94,7 +94,6 @@ public class LwModelToXMLDumper implements ModelToXMLDumper {
                 doWriteAttribute("id", def.getId());
                 // write location information
                 if (context.isDebugging()) {
-                    String id = def.getId();
                     String loc = (def instanceof RouteDefinition ? ((RouteDefinition) def).getInput() : def).getLocation();
                     int line = (def instanceof RouteDefinition ? ((RouteDefinition) def).getInput() : def).getLineNumber();
                     if (line != -1) {