diff --git a/exec/load/dd_lightbar_menu.js b/exec/load/dd_lightbar_menu.js index 60d20e700fecaf5b386f322ca46ba14760e31aae..eda8baab21d35e31187e6497fca6029ca496039a 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);