From 1e400a8db978fc13d32387b945ca295b193536fe Mon Sep 17 00:00:00 2001 From: John Huang Date: Fri, 24 Dec 2021 01:57:30 -0800 Subject: [PATCH] Remove unused file --- .../src/Models/DisposeHelper.cs | 23 ------------------- .../tests/Azure.AI.Personalizer.Tests.csproj | 3 +++ 2 files changed, 3 insertions(+), 23 deletions(-) delete mode 100644 sdk/personalizer/Azure.AI.Personalizer/src/Models/DisposeHelper.cs diff --git a/sdk/personalizer/Azure.AI.Personalizer/src/Models/DisposeHelper.cs b/sdk/personalizer/Azure.AI.Personalizer/src/Models/DisposeHelper.cs deleted file mode 100644 index 9381df42de7ba..0000000000000 --- a/sdk/personalizer/Azure.AI.Personalizer/src/Models/DisposeHelper.cs +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -using System; -using System.Threading; - -namespace Azure.AI.Personalizer -{ - /// The class for Dispose helper - public static class DisposeHelper - { - /// Safe dispose - /// Configuration. - public static void SafeDispose(ref TDisposable disposable) where TDisposable : class, IDisposable - { - IDisposable localDisposable = Interlocked.Exchange(ref disposable, null); - if (localDisposable != null) - { - localDisposable.Dispose(); - } - } - } -} diff --git a/sdk/personalizer/Azure.AI.Personalizer/tests/Azure.AI.Personalizer.Tests.csproj b/sdk/personalizer/Azure.AI.Personalizer/tests/Azure.AI.Personalizer.Tests.csproj index b3f25e8aca749..b39fb2167a974 100644 --- a/sdk/personalizer/Azure.AI.Personalizer/tests/Azure.AI.Personalizer.Tests.csproj +++ b/sdk/personalizer/Azure.AI.Personalizer/tests/Azure.AI.Personalizer.Tests.csproj @@ -6,6 +6,9 @@ $(NoWarn);CS1591 $(NoWarn);CS8032 + + +