Skip to content

Commit

Permalink
Fix-up usings
Browse files Browse the repository at this point in the history
Remove redundant using statements.
  • Loading branch information
martincostello committed May 18, 2023
1 parent cbc996d commit e75c9d2
Show file tree
Hide file tree
Showing 20 changed files with 1 addition and 48 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using Polly.CircuitBreaker;
using Polly.CircuitBreaker.Health;

Expand Down
5 changes: 0 additions & 5 deletions src/Polly.Core.Tests/Hedging/Controller/TaskExecutionTests.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
using System;
using System.Threading.Tasks;
using Polly.Core.Tests.Helpers;
using Polly.Hedging;
using Polly.Hedging.Controller;
using Polly.Hedging.Utils;
using Polly.Strategy;
using Polly.Utils;
using TimeProvider = Polly.Utils.TimeProvider;

namespace Polly.Core.Tests.Hedging.Controller;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using Polly.Hedging;
using Polly.Strategy;
using Xunit.Abstractions;
Expand Down
4 changes: 0 additions & 4 deletions src/Polly.Core.Tests/Hedging/HedgingTimeProvider.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
using System;
using System.Threading;
using System.Threading.Tasks;

namespace Polly.Core.Tests.Hedging;

internal class HedgingTimeProvider : TimeProvider
Expand Down
2 changes: 1 addition & 1 deletion src/Polly.Core.Tests/Polly.Core.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<NoWarn>$(NoWarn);SA1600;SA1204;SA1602</NoWarn>
<Include>[Polly.Core]*</Include>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Polly.Contrib.WaitAndRetry" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
using System;
using System.Threading;
using Moq;
using Polly.Core.Tests.Helpers;
using Polly.Utils;
using Xunit;
using TimeProvider = Polly.Utils.TimeProvider;

namespace Polly.Core.Tests.Utils;

Expand Down
3 changes: 0 additions & 3 deletions src/Polly.Core.Tests/Utils/TimeProviderExtensionsTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using Polly.Utils;
using TimeProvider = Polly.Utils.TimeProvider;

namespace Polly.Core.Tests.Utils;

public class TimeProviderExtensionsTests
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Polly.Strategy;
using TimeProvider = Polly.Utils.TimeProvider;

namespace Polly.CircuitBreaker;

Expand Down
2 changes: 0 additions & 2 deletions src/Polly.Core/CircuitBreaker/Health/HealthMetrics.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using TimeProvider = Polly.Utils.TimeProvider;

namespace Polly.CircuitBreaker.Health;

/// <summary>
Expand Down
2 changes: 0 additions & 2 deletions src/Polly.Core/CircuitBreaker/Health/RollingHealthMetrics.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using TimeProvider = Polly.Utils.TimeProvider;

namespace Polly.CircuitBreaker.Health;

/// <inheritdoc/>
Expand Down
3 changes: 0 additions & 3 deletions src/Polly.Core/CircuitBreaker/Health/SingleHealthMetrics.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using Polly;
using TimeProvider = Polly.Utils.TimeProvider;

namespace Polly.CircuitBreaker.Health;

/// <inheritdoc/>
Expand Down
2 changes: 0 additions & 2 deletions src/Polly.Core/Hedging/Controller/HedgingController.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Polly.Hedging.Controller;
using Polly.Utils;
using TimeProvider = Polly.Utils.TimeProvider;

namespace Polly.Hedging.Utils;

Expand Down
6 changes: 0 additions & 6 deletions src/Polly.Core/Hedging/Controller/HedgingExecutionContext.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Polly.Hedging.Controller;
using Polly.Strategy;
using Polly.Utils;
using static Polly.Hedging.Utils.HedgingExecutionContext;
using TimeProvider = Polly.Utils.TimeProvider;

namespace Polly.Hedging.Utils;

Expand Down
2 changes: 0 additions & 2 deletions src/Polly.Core/Hedging/HedgingResilienceStrategy.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using System.Diagnostics.CodeAnalysis;
using System.Runtime.CompilerServices;
using System.Runtime.ExceptionServices;
using System.Threading;
using Polly.Hedging;
using Polly.Hedging.Utils;
using Polly.Strategy;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System.ComponentModel.DataAnnotations;
using Polly.Hedging;
using TimeProvider = Polly.Utils.TimeProvider;

namespace Polly;

Expand Down
1 change: 0 additions & 1 deletion src/Polly.Core/ResilienceStrategyBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System.ComponentModel.DataAnnotations;
using Polly.Strategy;
using TimeProvider = Polly.Utils.TimeProvider;

namespace Polly;

Expand Down
2 changes: 0 additions & 2 deletions src/Polly.Core/Retry/RetryResilienceStrategy.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using Polly.Strategy;
using TimeProvider = Polly.Utils.TimeProvider;

namespace Polly.Retry;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Polly.Telemetry;
using TimeProvider = Polly.Utils.TimeProvider;

namespace Polly.Strategy;

Expand Down
3 changes: 0 additions & 3 deletions src/Polly.Core/Timeout/TimeoutResilienceStrategy.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Threading.Tasks;
using Polly.Strategy;
using TimeProvider = Polly.Utils.TimeProvider;

namespace Polly.Timeout;

Expand Down
2 changes: 0 additions & 2 deletions src/Polly.Extensions/Telemetry/TelemetryResilienceStrategy.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Diagnostics.Metrics;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using Polly.Strategy;
using Polly.Telemetry;
Expand Down

0 comments on commit e75c9d2

Please sign in to comment.