From 209d35dc6bc919a29aff699759c1573e50fc0832 Mon Sep 17 00:00:00 2001 From: Ken Snyder Date: Thu, 7 Nov 2024 13:05:35 -0800 Subject: [PATCH] chore: dead code removal --- src/runtime/errors/KindError.ts | 5 ----- src/runtime/literals/stripChars.ts | 2 +- src/runtime/literals/toKebabCase.ts | 5 +---- 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/runtime/errors/KindError.ts b/src/runtime/errors/KindError.ts index 34dcc6d8..357c18d5 100644 --- a/src/runtime/errors/KindError.ts +++ b/src/runtime/errors/KindError.ts @@ -1,11 +1,6 @@ import { stripChars, toKebabCase, toPascalCase } from "../literals"; import { - AfterFirst, - As, - CombinedKeys, EmptyObject, - ExpandDictionary, - First, Handle, KindError, KindErrorDefn, diff --git a/src/runtime/literals/stripChars.ts b/src/runtime/literals/stripChars.ts index 74aad871..290110db 100644 --- a/src/runtime/literals/stripChars.ts +++ b/src/runtime/literals/stripChars.ts @@ -1,4 +1,4 @@ -import { StripChars, TupleToUnion } from "inferred-types/dist/types/index"; +import { StripChars } from "inferred-types/dist/types/index"; import { asChars } from "inferred-types/dist/runtime/index"; /** diff --git a/src/runtime/literals/toKebabCase.ts b/src/runtime/literals/toKebabCase.ts index b0bb19d3..c291b72a 100644 --- a/src/runtime/literals/toKebabCase.ts +++ b/src/runtime/literals/toKebabCase.ts @@ -1,8 +1,5 @@ import { KebabCase } from "inferred-types/dist/types/index"; - - - /** * **toKebabCase**(str) * @@ -16,7 +13,7 @@ import { KebabCase } from "inferred-types/dist/types/index"; export function toKebabCase< S extends string, P extends boolean = false ->(input: S, preserveWhitespace: P = false as P) { +>(input: S, _preserveWhitespace: P = false as P) { const [_, preWhite, focus, postWhite] = /^(\s*)(.*?)(\s*)$/.exec(input) as RegExpExecArray; const replaceWhitespace = (i: string) => i.replace(/\s/gs, "-");