From 08f412f7f5b4c5b845a9b4ac33c1d70765477d3e Mon Sep 17 00:00:00 2001 From: Martin Boonk Date: Sat, 13 Apr 2024 21:58:49 +0200 Subject: [PATCH] bthrm - Fix new lint warnings --- apps/bthrm/lib.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/apps/bthrm/lib.js b/apps/bthrm/lib.js index b00e15d93..b81bd6118 100644 --- a/apps/bthrm/lib.js +++ b/apps/bthrm/lib.js @@ -302,22 +302,6 @@ exports.enable = () => { }); }; - let createCharacteristicsPromise = function(newCharacteristics) { - log("Create characteristics promis ", newCharacteristics); - let result = Promise.resolve(); - for (let c of newCharacteristics){ - if (!supportedCharacteristics[c.uuid]) continue; - log("Supporting characteristic", c); - characteristics.push(c); - if (c.properties.notify){ - addNotificationHandler(c); - } - - result = attachCharacteristicPromise(result, c); - } - return result.then(()=>log("Handled characteristics")); - }; - let initBt = function () { log("initBt with blockInit: " + blockInit); if (blockInit && !powerdownRequested){