From c09db7d477b03a1039832c64174ca237c691005e Mon Sep 17 00:00:00 2001
From: Kristof Szabados <Kristof.Szabados@ericsson.com>
Date: Fri, 11 Dec 2020 21:12:40 +0100
Subject: [PATCH] some more unused variables removed.

Signed-off-by: Kristof Szabados <Kristof.Szabados@ericsson.com>
---
 core2/Basetype2.cc | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/core2/Basetype2.cc b/core2/Basetype2.cc
index c64223532..d168cf7d3 100644
--- a/core2/Basetype2.cc
+++ b/core2/Basetype2.cc
@@ -4003,14 +4003,12 @@ int Record_Type::TEXT_decode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& buf
         int tl;
         if ((tl=p_td.text->separator_decode->match_begin(buff))<0) {
           if (p_td.text->end_decode) {
-            int tl2;
-            if ((tl2=p_td.text->end_decode->match_begin(buff))!=-1) {
+            if (p_td.text->end_decode->match_begin(buff)!=-1) {
               sep_found=FALSE;
               break;
             }
           } else if (limit.has_token(ml)) {
-            int tl2;
-            if ((tl2=limit.match(buff,ml))==0) {
+            if (limit.match(buff,ml)==0) {
               sep_found=FALSE;
               break;
             }
@@ -4059,8 +4057,7 @@ int Record_Type::TEXT_decode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& buf
           goto bail;
         }
       } else if(limit.has_token(ml)){
-        int tl;
-        if ((tl=limit.match(buff,ml))==0) {
+        if (limit.match(buff,ml)==0) {
           sep_found=FALSE;
           break;
         }
-- 
GitLab