From 9a2e0f1add9047c3ec86432ba32af15b9ef05527 Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Tue, 24 Feb 2026 15:33:17 +0900 Subject: [PATCH] refactor(hashline-edit): remove unnecessary barrel re-exports of internal primitives MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit applySetLine, applyReplaceLines, applyInsertAfter, applyInsertBefore were re-exported from both edit-operations.ts and index.ts but have no external consumers — they are only used internally within the module. Only applyHashlineEdits (the public API) remains exported. --- src/tools/hashline-edit/edit-operations.test.ts | 4 ++-- src/tools/hashline-edit/edit-operations.ts | 6 ------ src/tools/hashline-edit/index.ts | 4 ---- 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/src/tools/hashline-edit/edit-operations.test.ts b/src/tools/hashline-edit/edit-operations.test.ts index ce573da4..1940b9e4 100644 --- a/src/tools/hashline-edit/edit-operations.test.ts +++ b/src/tools/hashline-edit/edit-operations.test.ts @@ -1,6 +1,6 @@ import { describe, expect, it } from "bun:test" -import { applyHashlineEdits, applyInsertAfter, applyReplaceLines, applySetLine } from "./edit-operations" -import { applyAppend, applyPrepend } from "./edit-operation-primitives" +import { applyHashlineEdits } from "./edit-operations" +import { applyAppend, applyInsertAfter, applyPrepend, applyReplaceLines, applySetLine } from "./edit-operation-primitives" import { computeLineHash } from "./hash-computation" import type { HashlineEdit } from "./types" diff --git a/src/tools/hashline-edit/edit-operations.ts b/src/tools/hashline-edit/edit-operations.ts index 8558b51d..fae662d1 100644 --- a/src/tools/hashline-edit/edit-operations.ts +++ b/src/tools/hashline-edit/edit-operations.ts @@ -88,9 +88,3 @@ export function applyHashlineEdits(content: string, edits: HashlineEdit[]): stri return applyHashlineEditsWithReport(content, edits).content } -export { - applySetLine, - applyReplaceLines, - applyInsertAfter, - applyInsertBefore, -} from "./edit-operation-primitives" diff --git a/src/tools/hashline-edit/index.ts b/src/tools/hashline-edit/index.ts index 97a0ba7b..b38d63d3 100644 --- a/src/tools/hashline-edit/index.ts +++ b/src/tools/hashline-edit/index.ts @@ -16,9 +16,5 @@ export type { export { NIBBLE_STR, HASHLINE_DICT, HASHLINE_REF_PATTERN, HASHLINE_OUTPUT_PATTERN } from "./constants" export { applyHashlineEdits, - applyInsertAfter, - applyInsertBefore, - applyReplaceLines, - applySetLine, } from "./edit-operations" export { createHashlineEditTool } from "./tools"