Skip to content

Commit 6954790

Browse files
committed
Remove unnecessary code
1 parent feb674f commit 6954790

File tree

3 files changed

+3
-11
lines changed

3 files changed

+3
-11
lines changed

src/Microsoft.OpenApi/Models/OpenApiDocument.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) Microsoft Corporation. All rights reserved.
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT license.
33

44
using System;
@@ -692,12 +692,6 @@ public JsonSchema FindSubschema(Json.Pointer.JsonPointer pointer, EvaluationOpti
692692
{
693693
throw new NotImplementedException();
694694
}
695-
696-
internal JsonSchema ResolveJsonSchemaReference(Uri reference)
697-
{
698-
var referencePath = string.Concat("https://registry", reference.OriginalString.Split('#').Last());
699-
return (JsonSchema)SchemaRegistry.Global.Get(new Uri(referencePath));
700-
}
701695
}
702696

703697
internal class FindSchemaReferences : OpenApiVisitorBase

src/Microsoft.OpenApi/Reader/V3/OpenApiDocumentDeserializer.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) Microsoft Corporation. All rights reserved.
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT license.
33

44
using Microsoft.OpenApi.Extensions;
@@ -50,7 +50,6 @@ public static OpenApiDocument LoadOpenApi(RootNode rootNode)
5050
{
5151
var openApiDoc = new OpenApiDocument();
5252
var openApiNode = rootNode.GetMap();
53-
var openApiDoc = new OpenApiDocument();
5453

5554
ParseMap(openApiNode, openApiDoc, _openApiFixedFields, _openApiPatternFields);
5655

src/Microsoft.OpenApi/Reader/V31/OpenApiDocumentDeserializer.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using Microsoft.OpenApi.Extensions;
33
using Microsoft.OpenApi.Models;
44
using Microsoft.OpenApi.Reader.ParseNodes;
@@ -49,7 +49,6 @@ public static OpenApiDocument LoadOpenApi(RootNode rootNode)
4949
{
5050
var openApiDoc = new OpenApiDocument();
5151
var openApiNode = rootNode.GetMap();
52-
var openApiDoc = new OpenApiDocument();
5352

5453
ParseMap(openApiNode, openApiDoc, _openApiFixedFields, _openApiPatternFields);
5554

0 commit comments

Comments
 (0)