diff --git a/src/Kiota.Builder/Refiners/TypeScriptRefiner.cs b/src/Kiota.Builder/Refiners/TypeScriptRefiner.cs index 392298eb6c..c92567a209 100644 --- a/src/Kiota.Builder/Refiners/TypeScriptRefiner.cs +++ b/src/Kiota.Builder/Refiners/TypeScriptRefiner.cs @@ -372,19 +372,6 @@ private static CodeMethod CreateSerializerMethodForComposedType(CodeInterface co return method; } - private static CodeMethod CreateDeserializerMethodForComposedType(CodeInterface codeInterface, CodeComposedTypeBase composedType, CodeFunction function) - { - var method = CreateCodeMethod(codeInterface, function); - // Add the key parameter if the composed type is a union of primitive values - if (composedType is CodeUnionType && ConventionServiceInstance.IsComposedOfPrimitives(composedType)) - { - method.ReturnType = new CodeType { Name = composedType.Name, IsExternal = false, TypeDefinition = composedType }; - method.ClearParameters(); - method.AddParameter(CreateParseNodeCodeParameter()); - } - return method; - } - private static CodeMethod CreateCodeMethod(CodeInterface codeInterface, CodeFunction function) { var method = new CodeMethod @@ -415,19 +402,6 @@ private static CodeMethodKind GetComposedTypeMethodKind(CodeFunction function) }; } - private static CodeParameter CreateParseNodeCodeParameter() - { - return new CodeParameter - { - Name = "node", - Type = new CodeType - { - Name = "ParseNode", - IsExternal = true, - }, - }; - } - private static CodeParameter CreateKeyParameter() { return new CodeParameter