From a09507ba4c7426098dcd5a0dec9ce1db7286c80e Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Tue, 30 Jun 2026 14:00:19 -0700 Subject: [PATCH] Delete unused object converter. --- src/lib/convert/index.ts | 1 - src/lib/convert/obj.ts | 18 ------------------ 2 files changed, 19 deletions(-) delete mode 100644 src/lib/convert/obj.ts diff --git a/src/lib/convert/index.ts b/src/lib/convert/index.ts index 8e5b6e2..0034c62 100644 --- a/src/lib/convert/index.ts +++ b/src/lib/convert/index.ts @@ -6,5 +6,4 @@ export { bin } from './bin' export { bytes } from './bytes' export { dec } from './dec' export { hex } from './hex' -export { obj } from './obj' export { utf8 } from './utf8' diff --git a/src/lib/convert/obj.ts b/src/lib/convert/obj.ts deleted file mode 100644 index d701a33..0000000 --- a/src/lib/convert/obj.ts +++ /dev/null @@ -1,18 +0,0 @@ -//! SPDX-FileCopyrightText: 2025 Chris Duncan -//! SPDX-License-Identifier: GPL-3.0-or-later - -export const obj = Object.freeze({ - /** - * Convert a numerically-indexed object of 8-bit values to a Uint8Array of bytes. - * - * @param {Record} obj - Object to convert - * @returns {Uint8Array} Byte array representation of the input object - */ - toBytes (obj: Record): Uint8Array { - const values = Object.keys(obj) - .map(key => +key) - .sort((a, b) => a - b) - .map(i => obj[i]) - return new Uint8Array(values) - }, -}) -- 2.52.0