Skip to content

Commit 6c49f09

Browse files
committed
chore: remove unused usings
1 parent b3e4021 commit 6c49f09

18 files changed

+12
-38
lines changed

src/Microsoft.Graph.Core/Extensions/HttpRequestMessageExtensions.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,8 @@ namespace Microsoft.Graph
66
{
77
using System;
88
using System.Collections.Generic;
9-
using System.IO;
109
using System.Linq;
1110
using System.Net.Http;
12-
using System.Threading.Tasks;
13-
using Microsoft.Kiota.Http.HttpClientLibrary.Extensions;
1411

1512
/// <summary>
1613
/// Contains extension methods for <see cref="HttpRequestMessage"/>

src/Microsoft.Graph.Core/Extensions/IDecryptableContentExtensions.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@ namespace Microsoft.Graph
99
using System.Security.Cryptography;
1010
using System.Security.Cryptography.X509Certificates;
1111
using System.Text;
12-
using System.Text.Json;
1312
using System.Threading.Tasks;
1413
using Microsoft.Kiota.Abstractions.Serialization;
15-
using Microsoft.Kiota.Serialization.Json;
1614

1715
/// <summary>
1816
/// Contains extension methods for <see cref="IDecryptableContentExtensions"/>
@@ -43,7 +41,7 @@ public static class IDecryptableContentExtensions
4341

4442
/// <summary>
4543
/// Validates the signature and decrypted content attached with the notification.
46-
/// https://docs.microsoft.com/en-us/graph/webhooks-with-resource-data#decrypting-resource-data-from-change-notifications
44+
/// https://docs.microsoft.com/en-us/graph/webhooks-with-resource-data#decrypting-resource-data-from-change-notifications
4745
/// </summary>
4846
/// <param name="encryptedContent">The encrypted content of type <see cref="IDecryptableContent"/></param>
4947
/// <param name="certificateProvider">Certificate provider to decrypt the content.
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using System.Reflection;
2-
using System.Resources;
3-
using System.Runtime.CompilerServices;
1+
using System.Runtime.CompilerServices;
42
#if DEBUG
53
[assembly: InternalsVisibleTo("Microsoft.Graph.DotnetCore.Core.Test")]
64
#endif

src/Microsoft.Graph.Core/Requests/AsyncMonitor.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ namespace Microsoft.Graph
77
using System;
88
using System.Net;
99
using System.Net.Http;
10-
using System.Text.Json;
1110
using System.Threading;
1211
using System.Threading.Tasks;
1312
using Microsoft.Kiota.Abstractions;

src/Microsoft.Graph.Core/Requests/Content/BatchRequestContent.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
namespace Microsoft.Graph
66
{
77
using System;
8-
using System.Collections;
98
using System.Collections.Generic;
109
using System.ComponentModel;
1110
using System.IO;

src/Microsoft.Graph.Core/Requests/Content/BatchResponseContentCollection.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
using System.Linq;
77
using System.Net;
88
using System.Net.Http;
9-
using System.Text.Json;
109
using System.Threading.Tasks;
1110
using Microsoft.Kiota.Abstractions;
1211
using Microsoft.Kiota.Abstractions.Serialization;

src/Microsoft.Graph.Core/Requests/DeltaResponseHandler.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
namespace Microsoft.Graph
66
{
7-
using System;
87
using System.Collections.Generic;
98
using System.IO;
109
using System.Linq;
@@ -21,7 +20,7 @@ namespace Microsoft.Graph
2120
#endif
2221

2322
/// <summary>
24-
/// PREVIEW
23+
/// PREVIEW
2524
/// A response handler that exposes the list of changes returned in a response.
2625
/// This supports scenarios where the service expresses changes to 'null'. The
2726
/// deserializer can't express changes to null so you can now discover if a property
@@ -56,7 +55,7 @@ public async Task<ModelType> HandleResponseAsync<NativeResponseType, ModelType>(
5655
// set on the response body object.
5756
var responseString = await GetResponseStringAsync(responseMessage).ConfigureAwait(false);
5857

59-
// Get the response body object with the change list
58+
// Get the response body object with the change list
6059
// set on each response item.
6160
var responseWithChangeList = await GetResponseBodyWithChangelistAsync(responseString).ConfigureAwait(false);
6261
using var responseWithChangeListStream = new MemoryStream(Encoding.UTF8.GetBytes(responseWithChangeList));
@@ -112,7 +111,7 @@ private async Task<string> GetResponseBodyWithChangelistAsync(string deltaRespon
112111
// return a string instead.
113112
using (var responseJsonDocument = JsonDocument.Parse(deltaResponseBody))
114113
{
115-
// An array of delta objects. We will need to process
114+
// An array of delta objects. We will need to process
116115
// each one independently of each other.
117116
if (!responseJsonDocument.RootElement.TryGetProperty("value", out var pageOfDeltaObjects))
118117
{
@@ -193,7 +192,7 @@ private async Task GetObjectPropertiesAsync(JsonElement changedObject, List<stri
193192
var arrayEnumerator = property.Value.EnumerateArray();
194193
if (!arrayEnumerator.Any())
195194
{
196-
// Handle the edge case when the change involves changing to an empty array
195+
// Handle the edge case when the change involves changing to an empty array
197196
// as we can't observe elements in an empty collection in the foreach loop below
198197
changes.Add(parent);
199198
break;

src/Microsoft.Graph.Core/Requests/GraphClientFactory.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ namespace Microsoft.Graph
99
using System.Net;
1010
using System.Net.Http;
1111
using System.Net.Http.Headers;
12-
using System.Threading;
1312
using Microsoft.Kiota.Http.HttpClientLibrary;
1413
using Microsoft.Kiota.Http.HttpClientLibrary.Middleware;
1514

@@ -211,7 +210,7 @@ internal static HttpMessageHandler GetNativePlatformHttpHandler(IWebProxy proxy
211210
return new WinHttpHandler { Proxy = proxy, AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate , WindowsProxyUsePolicy = proxyPolicy, SendTimeout = Timeout.InfiniteTimeSpan, ReceiveDataTimeout = Timeout.InfiniteTimeSpan, ReceiveHeadersTimeout = Timeout.InfiniteTimeSpan };
212211
#elif NET6_0_OR_GREATER
213212
//use resilient configs when we can https://learn.microsoft.com/en-us/aspnet/core/fundamentals/http-requests?view=aspnetcore-5.0#alternatives-to-ihttpclientfactory-1
214-
return new SocketsHttpHandler { Proxy = proxy, AllowAutoRedirect = false, AutomaticDecompression = DecompressionMethods.All, PooledConnectionLifetime = TimeSpan.FromMinutes(1)};
213+
return new SocketsHttpHandler { Proxy = proxy, AllowAutoRedirect = false, AutomaticDecompression = DecompressionMethods.All, PooledConnectionLifetime = TimeSpan.FromMinutes(1)};
215214
#else
216215
return new HttpClientHandler { Proxy = proxy, AllowAutoRedirect = false, AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate };
217216
#endif

src/Microsoft.Graph.Core/Requests/GraphRequestContext.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44

55
namespace Microsoft.Graph
66
{
7-
using System.Collections.Generic;
87
using System.Threading;
9-
using Microsoft.Kiota.Abstractions;
108

119
/// <summary>
1210
/// The graph request context class

src/Microsoft.Graph.Core/Requests/GraphResponse{T}.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
namespace Microsoft.Graph
66
{
7-
using System;
87
using System.Collections.Generic;
98
using System.Net.Http;
109
using System.Threading.Tasks;
@@ -27,7 +26,7 @@ public GraphResponse(RequestInformation requestInformation, HttpResponseMessage
2726
}
2827

2928
/// <summary>
30-
/// Gets the deserialized object
29+
/// Gets the deserialized object
3130
/// </summary>
3231
/// <param name="responseHandler">The response handler to use for the reponse</param>
3332
/// <param name="errorMappings">The errorMappings to use in the event of a non sucess request</param>

0 commit comments

Comments
 (0)