chore: remove unused imports and local helpers

Drop module-local helpers that nothing calls (linkAbort, summarize,
stringOption, summarizeEntity and the polygonCenter, propertyObject and
unwrapProperties helpers only it used, CALLOUT_DOT_SIZE_PX) and unused
import specifiers in runtime modules, tests, QA scripts and tools.

None of the removed bindings is exported. Re-exports such as the ALPR
policy constants and every package export are unchanged.
This commit is contained in:
Sameh Khamis committed 2026-10-22 18:09:37 -07:00
1 parent e479b6e91d
commit f60b9ef7c8
42 files changed
+9 -191

No files matched your search

+1 -3
View File
@@ -34,13 +34,11 @@
* Dependencies: sharp (devDependency)
*/
import { readFileSync, mkdirSync, writeFileSync } from 'node:fs';
import { mkdirSync } from 'node:fs';
import { resolve, join, basename, extname } from 'node:path';
import { fileURLToPath } from 'node:url';
import { projectRoot } from '../scripts/project-root.mjs';
import sharp from 'sharp';
const __dirname = fileURLToPath(new URL('.', import.meta.url));
const PROJECT_ROOT = projectRoot(import.meta.url);
// ---------------------------------------------------------------------------
-2
View File
@@ -32,11 +32,9 @@
import { readFileSync, mkdirSync } from 'node:fs';
import { resolve, join } from 'node:path';
import { fileURLToPath } from 'node:url';
import { projectRoot } from '../scripts/project-root.mjs';
import sharp from 'sharp';
const __dirname = fileURLToPath(new URL('.', import.meta.url));
const PROJECT_ROOT = projectRoot(import.meta.url);
const TILE_SIZE = 256;
const MAX_CONCURRENT = 8;
-1
View File
@@ -28,7 +28,6 @@ import { projectRoot } from '../scripts/project-root.mjs';
import { parseEnv } from 'node:util';
import { resolveGoogleServerKey } from '../scripts/google-server-key.mjs';
const __dirname = fileURLToPath(new URL('.', import.meta.url));
const PROJECT_ROOT = projectRoot(import.meta.url);
function parseArgs() {
-2
View File
@@ -24,11 +24,9 @@
import { readFileSync, mkdirSync, writeFileSync } from 'node:fs';
import { resolve, join } from 'node:path';
import { fileURLToPath } from 'node:url';
import { projectRoot } from '../scripts/project-root.mjs';
import sharp from 'sharp';
const __dirname = fileURLToPath(new URL('.', import.meta.url));
const PROJECT_ROOT = projectRoot(import.meta.url);
// ---------------------------------------------------------------------------