From 348abc79f6f157f7df41ecd0ca6acbdbb29e2fa5 Mon Sep 17 00:00:00 2001 From: Shinwoo PARK Date: Tue, 18 Mar 2025 21:24:23 +0900 Subject: [PATCH] refactor: remove unused scopeKey symbol and related code The scopeKey symbol and its associated code were no longer used in the codebase. This commit removes them to clean up the code and improve maintainability. --- src/logged.ts | 31 ------------------------------- src/reflected.ts | 1 - 2 files changed, 32 deletions(-) diff --git a/src/logged.ts b/src/logged.ts index 0819e30..1cd5892 100644 --- a/src/logged.ts +++ b/src/logged.ts @@ -11,9 +11,7 @@ import { ScopedLogger } from "./logger"; import { LoggedParamReflectData, ReturnsReflectData, - ScopeKeyReflectData, returns, - scopeKey, nestLoggedMetadata, loggedParam, scopedLogger @@ -121,7 +119,6 @@ export function LoggedController(param?: any): (target: any) => void { interface FunctionMetadata { scopedLoggerInjectableParam?: number; - scopeKeys?: ScopeKeyReflectData[]; loggedParams?: LoggedParamReflectData[]; } @@ -381,12 +378,6 @@ export function LoggedFunction, R>( key ); - const scopeKeys: ScopeKeyReflectData[] = Reflect.getOwnMetadata( - scopeKey, - _target, - key - ); - const returnsData: ReturnsReflectData[] | true = Reflect.getOwnMetadata( returns, fn @@ -399,7 +390,6 @@ export function LoggedFunction, R>( { scopedLoggerInjectableParam, loggedParams, - scopeKeys, }, key, returnsData, @@ -476,12 +466,6 @@ export function LoggedRoute, R>(route?: string, options?: P key ); - const scopeKeys: ScopeKeyReflectData[] = Reflect.getOwnMetadata( - scopeKey, - _target, - key - ); - const returnsData: ReturnsReflectData[] | true = Reflect.getOwnMetadata( returns, fn @@ -494,7 +478,6 @@ export function LoggedRoute, R>(route?: string, options?: P { scopedLoggerInjectableParam, loggedParams, - scopeKeys, }, key, returnsData, @@ -560,12 +543,6 @@ export function LoggedGuard, R>(options?: Partial, R>(options?: Partial, R>(options?: Partial, R>(options?: Partial