From b347f7aad41ca0e7c80fd48485f6a0d2f4be2b70 Mon Sep 17 00:00:00 2001 From: Cody Robibero Date: Mon, 26 Feb 2024 11:55:42 -0700 Subject: [PATCH] Remove unused function --- src/Kiota.Builder/Extensions/OpenApiSchemaExtensions.cs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/Kiota.Builder/Extensions/OpenApiSchemaExtensions.cs b/src/Kiota.Builder/Extensions/OpenApiSchemaExtensions.cs index f618145f8b..4c705bdeeb 100644 --- a/src/Kiota.Builder/Extensions/OpenApiSchemaExtensions.cs +++ b/src/Kiota.Builder/Extensions/OpenApiSchemaExtensions.cs @@ -47,14 +47,6 @@ public static string GetSchemaName(this OpenApiSchema schema) return schema.GetSchemaNames().LastOrDefault()?.TrimStart('$') ?? string.Empty;// OData $ref } - public static OpenApiSchema? GetSchema(this OpenApiSchema schema) - { - if (schema is null) - return null; - - return schema.IsArray() ? schema.Items : schema; - } - public static bool IsReferencedSchema(this OpenApiSchema schema) { var isReference = schema?.Reference != null;