From ebdf92ffdd3edc965c0ad7ff92ff295b577174cc Mon Sep 17 00:00:00 2001
From: Eric Oulashin <eric.oulashin@gmail.com>
Date: Tue, 3 Oct 2023 21:43:24 -0700
Subject: [PATCH] removed redundant/incorrect len variable in
 substrWithAttrCodes() in dd_lightbar_menu.js

---
 exec/load/dd_lightbar_menu.js | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/exec/load/dd_lightbar_menu.js b/exec/load/dd_lightbar_menu.js
index 60d20e700f..eda8baab21 100644
--- a/exec/load/dd_lightbar_menu.js
+++ b/exec/load/dd_lightbar_menu.js
@@ -3434,9 +3434,6 @@ function substrWithAttrCodes(pStr, pStartIdx, pLen)
 	var screenLen = console.strlen(pStr);
 	if (typeof(pStartIdx) === "number" && pStartIdx >= 0 && pStartIdx < screenLen)
 		startIdx = pStartIdx;
-	var len = 0;
-	if (typeof(pLen) === "number" && pLen <= screenLen - startIdx)
-		len = pLen;
 
 	// Find the real start index.  If there are Synchronet attribute 
 	startIdx = printedToRealIdxInStr(pStr, startIdx);
-- 
GitLab