From 024d70a3125dca2e4e65056baa54537fb3c44219 Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Wed, 15 May 2024 10:19:24 +0800 Subject: [PATCH] remove default --- typespec-extension/src/code-model-builder.ts | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/typespec-extension/src/code-model-builder.ts b/typespec-extension/src/code-model-builder.ts index 28751ea455..aa2f193ac1 100644 --- a/typespec-extension/src/code-model-builder.ts +++ b/typespec-extension/src/code-model-builder.ts @@ -2577,22 +2577,6 @@ export class CodeModelBuilder { } } - // private getDefaultValue(type: Type | undefined): any { - // if (type) { - // switch (type.kind) { - // case "String": - // return type.value; - // case "Number": - // return type.value; - // case "Boolean": - // return type.value; - // // case "Tuple": - // // return type.values.map(getDefaultValue); - // } - // } - // return undefined; - // } - private getDoc(target: Type): string { return getDoc(this.program, target) || ""; }