Skip to content

Commit a04bb67

Browse files
committed
Undo unnecessary changes
1 parent cba6867 commit a04bb67

File tree

6 files changed

+1
-48
lines changed

6 files changed

+1
-48
lines changed

src/Http/Routing/src/Template/RouteTemplate.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,14 @@
66
using System.Diagnostics;
77
using System.Linq;
88
using Microsoft.AspNetCore.Routing.Patterns;
9-
#if COMPONENTS
10-
using Microsoft.AspNetCore.Components.Routing.Patterns;
11-
#endif
129

1310
namespace Microsoft.AspNetCore.Routing.Template;
1411

15-
#if !COMPONENTS
1612
/// <summary>
1713
/// Represents the template for a route.
1814
/// </summary>
1915
[DebuggerDisplay("{DebuggerToString()}")]
2016
public class RouteTemplate
21-
#else
22-
[DebuggerDisplay("{DebuggerToString()}")]
23-
internal class RouteTemplate
24-
#endif
2517
{
2618
private const string SeparatorString = "/";
2719

src/Http/Routing/src/Template/TemplateMatcher.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,14 @@
33

44
#nullable enable
55

6-
#if !COMPONENTS
76
using Microsoft.AspNetCore.Http;
8-
#else
9-
using Microsoft.AspNetCore.Components.Routing;
10-
#endif
117

128
namespace Microsoft.AspNetCore.Routing.Template;
139

14-
#if !COMPONENTS
1510
/// <summary>
1611
/// Supports matching paths to route templates and extracting parameter values.
1712
/// </summary>
1813
public class TemplateMatcher
19-
#else
20-
internal class TemplateMatcher
21-
#endif
2214
{
2315
// Perf: This is a cache to avoid looking things up in 'Defaults' each request.
2416
private readonly bool[] _hasDefaultValue;

src/Http/Routing/src/Template/TemplateParser.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,14 @@
1-
// Licensed to the .NET Foundation under one or more agreements.
1+
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

44
using Microsoft.AspNetCore.Routing.Patterns;
5-
#if COMPONENTS
6-
using Microsoft.AspNetCore.Components.Routing.Patterns;
7-
#endif
85

96
namespace Microsoft.AspNetCore.Routing.Template;
107

11-
#if !COMPONENTS
128
/// <summary>
139
/// Provides methods for parsing route template strings.
1410
/// </summary>
1511
public static class TemplateParser
16-
#else
17-
internal static class TemplateParser
18-
#endif
1912
{
2013
/// <summary>
2114
/// Creates a <see cref="RouteTemplate"/> for a given <paramref name="routeTemplate"/> string.

src/Http/Routing/src/Template/TemplatePart.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,14 @@
44
using System.Diagnostics;
55
using System.Linq;
66
using Microsoft.AspNetCore.Routing.Patterns;
7-
#if COMPONENTS
8-
using Microsoft.AspNetCore.Components.Routing.Patterns;
9-
#endif
107

118
namespace Microsoft.AspNetCore.Routing.Template;
129

13-
#if !COMPONENTS
1410
/// <summary>
1511
/// Represents a part of a route template segment.
1612
/// </summary>
1713
[DebuggerDisplay("{DebuggerToString()}")]
1814
public class TemplatePart
19-
#else
20-
[DebuggerDisplay("{DebuggerToString()}")]
21-
internal class TemplatePart
22-
#endif
2315
{
2416
/// <summary>
2517
/// Constructs a new <see cref="TemplatePart"/> instance.

src/Http/Routing/src/Template/TemplateSegment.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,14 @@
44
using System.Diagnostics;
55
using System.Linq;
66
using Microsoft.AspNetCore.Routing.Patterns;
7-
#if COMPONENTS
8-
using Microsoft.AspNetCore.Components.Routing.Patterns;
9-
#endif
107

118
namespace Microsoft.AspNetCore.Routing.Template;
129

13-
#if !COMPONENTS
1410
/// <summary>
1511
/// Represents a segment of a route template.
1612
/// </summary>
1713
[DebuggerDisplay("{DebuggerToString()}")]
1814
public class TemplateSegment
19-
#else
20-
[DebuggerDisplay("{DebuggerToString()}")]
21-
internal class TemplateSegment
22-
#endif
2315
{
2416
/// <summary>
2517
/// Constructs a new <see cref="TemplateSegment"/> instance.

src/Shared/PropertyHelper/PropertyHelper.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,9 @@
1010
using System.Reflection.Metadata;
1111
using System.Runtime.CompilerServices;
1212

13-
#if !COMPONENTS
1413
[assembly: MetadataUpdateHandler(typeof(Microsoft.Extensions.Internal.PropertyHelper.MetadataUpdateHandler))]
15-
#else
16-
[assembly: MetadataUpdateHandler(typeof(Microsoft.AspNetCore.Components.Reflection.PropertyHelper.MetadataUpdateHandler))]
17-
#endif
1814

19-
#if !COMPONENTS
2015
namespace Microsoft.Extensions.Internal;
21-
#else
22-
namespace Microsoft.AspNetCore.Components.Reflection;
23-
#endif
2416

2517
internal sealed class PropertyHelper
2618
{

0 commit comments

Comments
 (0)