Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
koros committed May 21, 2024
1 parent 9385ac0 commit 8c6e25b
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions src/Kiota.Builder/Refiners/TypeScriptRefiner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8c6e25b

Please sign in to comment.