Skip to content

Commit

Permalink
chore: dead code removal
Browse files Browse the repository at this point in the history
  • Loading branch information
yankeeinlondon committed Nov 7, 2024
1 parent 45c989d commit 209d35d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
5 changes: 0 additions & 5 deletions src/runtime/errors/KindError.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
import { stripChars, toKebabCase, toPascalCase } from "../literals";
import {
AfterFirst,
As,
CombinedKeys,
EmptyObject,
ExpandDictionary,
First,
Handle,
KindError,
KindErrorDefn,
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/literals/stripChars.ts
Original file line number Diff line number Diff line change
@@ -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";

/**
Expand Down
5 changes: 1 addition & 4 deletions src/runtime/literals/toKebabCase.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import { KebabCase } from "inferred-types/dist/types/index";




/**
* **toKebabCase**(str)
*
Expand All @@ -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, "-");
Expand Down

0 comments on commit 209d35d

Please sign in to comment.