Skip to content

Commit

Permalink
Remove Unused Usings
Browse files Browse the repository at this point in the history
  • Loading branch information
brminnick committed May 26, 2024
1 parent 4ce0ae5 commit 820006e
Show file tree
Hide file tree
Showing 30 changed files with 25 additions and 77 deletions.
2 changes: 0 additions & 2 deletions samples/GitStatus.API/GetRateLimits.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Net;
using System.Threading;
using System.Threading.Tasks;
using GitHubApiStatus;
using Microsoft.Azure.Functions.Worker;
using Microsoft.Azure.Functions.Worker.Http;
Expand Down
4 changes: 1 addition & 3 deletions samples/GitStatus.API/Program.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading.Tasks;
using System.Net.Http.Headers;
using GitHubApiStatus.Extensions;
using GitStatus.Shared;
using Microsoft.Extensions.Configuration;
Expand Down
5 changes: 1 addition & 4 deletions samples/GitStatus.ConsoleApp/Program.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading.Tasks;
using System.Net.Http.Headers;
using GitHubApiStatus;
using GitStatus.Shared;

Expand Down
1 change: 0 additions & 1 deletion samples/GitStatus.Mobile/Platforms/Android/MainActivity.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using Android.App;
using Android.Content.PM;
using Android.OS;

namespace GitStatus;

Expand Down
3 changes: 1 addition & 2 deletions samples/GitStatus.Mobile/Platforms/MacCatalyst/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using ObjCRuntime;
using UIKit;
using UIKit;

namespace GitStatus;

Expand Down
3 changes: 1 addition & 2 deletions samples/GitStatus.Mobile/Platforms/iOS/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using ObjCRuntime;
using UIKit;
using UIKit;

namespace GitStatus;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Threading;
using System.Threading.Tasks;
using GitHubApiStatus;
using GitHubApiStatus;

namespace GitStatus;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Threading;
using System.Threading.Tasks;
using GitHubApiStatus;
using GitHubApiStatus;

namespace GitStatus;

Expand Down
4 changes: 0 additions & 4 deletions samples/GitStatus.Web/Program.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading.Tasks;
using GitHubApiStatus.Extensions;
using GitStatus.Shared;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using Microsoft.Extensions.DependencyInjection;

namespace GitStatus.Web;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Net.Http.Headers;
using System.Threading;
using System.Threading.Tasks;
using GitStatus.Shared;
using Microsoft.Extensions.DependencyInjection;
using NUnit.Framework;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Net.Http.Headers;
using System.Net.Http.Headers;
using Microsoft.Extensions.DependencyInjection;

namespace GitHubApiStatus.Extensions;
Expand Down
3 changes: 1 addition & 2 deletions src/GitHubApiStatus.UnitTests/Models/GraphQLError.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Collections.Generic;
using Newtonsoft.Json;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

namespace GitHubApiStatus.UnitTests;
Expand Down
2 changes: 0 additions & 2 deletions src/GitHubApiStatus.UnitTests/Tests/Base/BaseTest.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using System;
using System.Net;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading.Tasks;
using GitStatus.Shared;
using Newtonsoft.Json;
using NUnit.Framework;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using System;
using System.Net.Http;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading.Tasks;
using GitStatus.Shared;
using NUnit.Framework;

Expand Down Expand Up @@ -134,9 +132,9 @@ public async Task GetApiRateLimits_ValidSearchApiRequest()

Assert.AreEqual(searchApiStatus_Initial.RateLimit, searchApiStatus_Final.RateLimit);
Assert.IsTrue(searchApiStatus_Initial.RateLimitReset_DateTime == searchApiStatus_Final.RateLimitReset_DateTime || searchApiStatus_Initial.RateLimitReset_DateTime == searchApiStatus_Final.RateLimitReset_DateTime.Subtract(TimeSpan.FromSeconds(1)));
#if NET8_0_OR_GREATER
#if NET8_0_OR_GREATER
Assert.GreaterOrEqual(searchApiStatus_Initial.RateLimitReset_TimeRemaining.TotalMilliseconds, searchApiStatus_Final.RateLimitReset_TimeRemaining.TotalMilliseconds);
#endif
#endif
Assert.AreEqual(searchApiStatus_Initial.RateLimitReset_UnixEpochSeconds, searchApiStatus_Final.RateLimitReset_UnixEpochSeconds);
Assert.GreaterOrEqual(searchApiStatus_Initial.RemainingRequestCount, searchApiStatus_Final.RemainingRequestCount);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
using System;
using System.Net.Http;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading;
using System.Threading.Tasks;
using GitStatus.Shared;
using NUnit.Framework;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Net.Http;
using System.Net.Http;
using System.Net.Http.Headers;
using NUnit.Framework;

Expand Down
3 changes: 1 addition & 2 deletions src/GitHubApiStatus.UnitTests/Tests/GetRateLimitTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Net.Http;
using System.Net.Http;
using System.Net.Http.Headers;
using NUnit.Framework;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Net.Http;
using System.Net.Http;
using System.Net.Http.Headers;
using NUnit.Framework;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Net.Http;
using System.Net.Http;
using System.Net.Http.Headers;
using NUnit.Framework;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Net.Http.Headers;
using System.Threading.Tasks;
using GitStatus.Shared;
using NUnit.Framework;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Net.Http;
using System.Net.Http;
using System.Net.Http.Headers;
using NUnit.Framework;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Net.Http;
using System.Net.Http;
using NUnit.Framework;

namespace GitHubApiStatus.UnitTests;
Expand Down
3 changes: 1 addition & 2 deletions src/GitHubApiStatus.UnitTests/Tests/IsAbuseRateLimitTest.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using NUnit.Framework;
using NUnit.Framework;

namespace GitHubApiStatus.UnitTests;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Net.Http;
using System.Net.Http;
using System.Net.Http.Headers;
using NUnit.Framework;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Net.Http.Headers;
using System.Threading.Tasks;
using GitStatus.Shared;
using NUnit.Framework;

Expand Down
4 changes: 1 addition & 3 deletions src/GitHubApiStatus/GitHubApiStatusException.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;

namespace GitHubApiStatus;
namespace GitHubApiStatus;

/// <summary>
/// Exception thrown by GitHubApiStatus
Expand Down
3 changes: 1 addition & 2 deletions src/GitHubApiStatus/HttpResponseHeadersExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Linq;
using System.Net.Http.Headers;
using System.Net.Http.Headers;

namespace GitHubApiStatus;

Expand Down
5 changes: 1 addition & 4 deletions src/GitHubApiStatus/Interfaces/IGitHubApiStatusService.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
using System;
using System.Diagnostics.CodeAnalysis;
using System.Diagnostics.CodeAnalysis;
using System.Net.Http.Headers;
using System.Threading;
using System.Threading.Tasks;

namespace GitHubApiStatus;

Expand Down
4 changes: 1 addition & 3 deletions src/GitHubApiStatus/Interfaces/IRateLimitStatus.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;

namespace GitHubApiStatus;
namespace GitHubApiStatus;

/// <summary>
/// Interface for GitHub API Raite Limit Status
Expand Down
4 changes: 1 addition & 3 deletions src/GitHubApiStatus/Models/RateLimitStatus.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;

namespace GitHubApiStatus;
namespace GitHubApiStatus;

/// <summary>
/// GitHub API Rate Limit Status
Expand Down

0 comments on commit 820006e

Please sign in to comment.