Skip to content

Commit a501198

Browse files
author
Andrew Omondi
committed
Cleanup out of date code
1 parent ffd5deb commit a501198

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

src/Microsoft.Graph.Core/Microsoft.Graph.Core.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<EnableNETAnalyzers>True</EnableNETAnalyzers>
3939
<PackageReadmeFile>README.md</PackageReadmeFile>
4040
<NoWarn>NU5048;NETSDK1202</NoWarn>
41-
<IsTrimmable>true</IsTrimmable>
41+
<IsTrimmable Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)','net5.0'))">true</IsTrimmable>
4242
</PropertyGroup>
4343
<!-- https://github.com/clairernovotny/DeterministicBuilds#deterministic-builds -->
4444
<PropertyGroup Condition="'$(TF_BUILD)' == 'true'">

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

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -170,20 +170,6 @@ internal static (HttpMessageHandler Pipeline, FeatureFlag FeatureFlags) CreatePi
170170
throw new ArgumentNullException(nameof(handlers), "DelegatingHandler array contains null item.");
171171
}
172172

173-
#if IOS || MACOS || MACCATALYST
174-
#if IOS || MACCATALYST
175-
// Skip CompressionHandler since NSUrlSessionHandler automatically handles decompression on iOS and macOS and it can't be turned off.
176-
// See issue https://github.com/microsoftgraph/msgraph-sdk-dotnet/issues/481 for more details.
177-
if (finalHandler.GetType().Equals(typeof(NSUrlSessionHandler)) && handler.GetType().Equals(typeof(CompressionHandler)))
178-
#elif MACOS
179-
if (finalHandler.GetType().Equals(typeof(Foundation.NSUrlSessionHandler)) && handler.GetType().Equals(typeof(CompressionHandler)))
180-
#endif
181-
{
182-
// Skip chaining of CompressionHandler.
183-
continue;
184-
}
185-
#endif
186-
187173
// Check for duplicate handler by type.
188174
if (!existingHandlerTypes.Add(handler.GetType()))
189175
{

0 commit comments

Comments
 (0)