From 9b0b37ec01f9bc26136dfd9353979a8592b40b28 Mon Sep 17 00:00:00 2001 From: p-sw Date: Sat, 15 Jun 2024 03:32:07 +0900 Subject: [PATCH] refactor(cli): remove meaningless utility functions --- packages/cli/src/helpers/registry.ts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/packages/cli/src/helpers/registry.ts b/packages/cli/src/helpers/registry.ts index 9379a78..c53fb8b 100644 --- a/packages/cli/src/helpers/registry.ts +++ b/packages/cli/src/helpers/registry.ts @@ -19,10 +19,6 @@ export async function getRegistry( return registryResponse } -export async function getAvailableComponentNames(registry: Registry): Promise { - return Object.keys(registry.components) -} - export async function getComponentURL( registry: Registry, componentName: string, @@ -35,10 +31,3 @@ export async function getComponentURL( } return base } - -export async function getComponentRealname( - registry: Registry, - componentName: keyof Registry['components'], -): Promise { - return registry.components[componentName].name -}