Skip to content

Commit 2601edb

Browse files
committed
Code cleanup
1 parent aa40a85 commit 2601edb

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/Microsoft.OpenApi/Services/OpenApiWalker.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,6 @@ internal void Walk(OpenApiCallback callback, bool isComponent = false)
402402
if (callback is OpenApiCallbackReference)
403403
{
404404
Walk(callback as IOpenApiReferenceable);
405-
callback.Reference.HostDocument = _currentDocument;
406405
return;
407406
}
408407

@@ -433,7 +432,6 @@ internal void Walk(OpenApiTag tag)
433432
if (tag is OpenApiTagReference)
434433
{
435434
Walk(tag as IOpenApiReferenceable);
436-
tag.Reference.HostDocument = _currentDocument;
437435
return;
438436
}
439437

@@ -507,7 +505,6 @@ internal void Walk(OpenApiPathItem pathItem, bool isComponent = false)
507505
if (pathItem is OpenApiPathItemReference)
508506
{
509507
Walk(pathItem as IOpenApiReferenceable);
510-
pathItem.Reference.HostDocument = _currentDocument;
511508
return;
512509
}
513510

@@ -631,7 +628,6 @@ internal void Walk(OpenApiParameter parameter, bool isComponent = false)
631628
if (parameter is OpenApiParameterReference)
632629
{
633630
Walk(parameter as IOpenApiReferenceable);
634-
parameter.Reference.HostDocument = _currentDocument;
635631
return;
636632
}
637633

@@ -680,7 +676,6 @@ internal void Walk(OpenApiResponse response, bool isComponent = false)
680676
if (response is OpenApiResponseReference)
681677
{
682678
Walk(response as IOpenApiReferenceable);
683-
response.Reference.HostDocument = _currentDocument;
684679
return;
685680
}
686681

@@ -704,7 +699,6 @@ internal void Walk(OpenApiRequestBody requestBody, bool isComponent = false)
704699
if (requestBody is OpenApiRequestBodyReference)
705700
{
706701
Walk(requestBody as IOpenApiReferenceable);
707-
requestBody.Reference.HostDocument = _currentDocument;
708702
return;
709703
}
710704

@@ -988,7 +982,6 @@ internal void Walk(OpenApiExample example, bool isComponent = false)
988982
if (example is OpenApiExampleReference)
989983
{
990984
Walk(example as IOpenApiReferenceable);
991-
example.Reference.HostDocument = _currentDocument;
992985
return;
993986
}
994987

@@ -1101,7 +1094,6 @@ internal void Walk(OpenApiLink link, bool isComponent = false)
11011094
if (link is OpenApiLinkReference)
11021095
{
11031096
Walk(link as IOpenApiReferenceable);
1104-
link.Reference.HostDocument = _currentDocument;
11051097
return;
11061098
}
11071099

@@ -1123,7 +1115,6 @@ internal void Walk(OpenApiHeader header, bool isComponent = false)
11231115
if (header is OpenApiHeaderReference)
11241116
{
11251117
Walk(header as IOpenApiReferenceable);
1126-
header.Reference.HostDocument = _currentDocument;
11271118
return;
11281119
}
11291120

@@ -1167,7 +1158,6 @@ internal void Walk(OpenApiSecurityScheme securityScheme, bool isComponent = fals
11671158
if (securityScheme is OpenApiSecuritySchemeReference)
11681159
{
11691160
Walk(securityScheme as IOpenApiReferenceable);
1170-
securityScheme.Reference.HostDocument = _currentDocument;
11711161
return;
11721162
}
11731163

0 commit comments

Comments
 (0)