Skip to content

Commit 6a88ae5

Browse files
refactor: remove unused/duplicate
1 parent a58b93e commit 6a88ae5

File tree

3 files changed

+1
-19
lines changed

3 files changed

+1
-19
lines changed

lib/env/envMode.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,3 @@ export const envMode = {
55
production: "production",
66
test: "test",
77
} as const
8-
9-
export const envModeConstName: Record<EnvMode, string> = {
10-
development: "publicEnvDev",
11-
production: "publicEnvProd",
12-
test: "test",
13-
} as const

lib/i18n/ttt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export function ttt(s: string): string {
22
return s
33
}
4-
export function tt1(s: string, x1: string): string {
4+
export function ttt1(s: string, x1: string): string {
55
return s.replace("[X]", x1)
66
}

lib/input/form/formMode.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { mdiAlert, mdiPlus, mdiSquareEditOutline, mdiTrashCanOutline } from "@mdi/js"
21

32
export type FormMode = keyof typeof formMode
43

@@ -21,17 +20,6 @@ export const formModeMutate = {
2120
remove: "remove",
2221
} as const
2322

24-
export function getFormIcon(mode: FormModeE) {
25-
return formIcon[mode]
26-
}
27-
28-
export const formIcon = {
29-
[formModeE.add]: mdiPlus,
30-
[formModeE.edit]: mdiSquareEditOutline,
31-
[formModeE.remove]: mdiTrashCanOutline,
32-
[formModeE.error]: mdiAlert,
33-
} as const satisfies Record<FormModeE, string>
34-
3523
export function getFormTitle(mode: FormMode, subject: string) {
3624
switch (mode) {
3725
case formMode.add:

0 commit comments

Comments
 (0)