From fe3142355b6733cfa0bcf4ef672d87fa96488d6c Mon Sep 17 00:00:00 2001 From: thyttan <97237430+thyttan@users.noreply.github.com> Date: Sun, 9 Jun 2024 15:36:03 +0200 Subject: [PATCH] astrocalc: fix lint warnings - Comment out an unused function - move initialization, `let m;` further up in the file. --- apps/astrocalc/astrocalc-app.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/apps/astrocalc/astrocalc-app.js b/apps/astrocalc/astrocalc-app.js index 02bcefc43..987470351 100644 --- a/apps/astrocalc/astrocalc-app.js +++ b/apps/astrocalc/astrocalc-app.js @@ -232,6 +232,8 @@ function drawSunShowPage(gps, key, date) { return null; } +let m; + function sunIndexPageMenu(gps) { const sunTimes = SunCalc.getTimes(new Date(), gps.lat, gps.lon); @@ -300,9 +302,9 @@ function indexPageMenu(gps) { return E.showMenu(menu); } -function getCenterStringX(str) { - return (g.getWidth() - g.stringWidth(str)) / 2; -} +//function getCenterStringX(str) { +// return (g.getWidth() - g.stringWidth(str)) / 2; +//} function init() { let location = require("Storage").readJSON("mylocation.json",1)||{"lat":51.5072,"lon":0.1276,"location":"London"}; @@ -311,5 +313,4 @@ function init() { Bangle.drawWidgets(); } -let m; init();