diff --git a/src/ComputeSharp/Graphics/Extensions/Interop/ComPtrExtensions.cs b/src/ComputeSharp/Graphics/Extensions/Interop/ComPtrExtensions.cs
index 0b14b7fe..7909fd04 100644
--- a/src/ComputeSharp/Graphics/Extensions/Interop/ComPtrExtensions.cs
+++ b/src/ComputeSharp/Graphics/Extensions/Interop/ComPtrExtensions.cs
@@ -8,52 +8,6 @@ namespace ComputeSharp.Core.Extensions;
///
internal static class ComPtrExtensions
{
-#if NET6_0_OR_GREATER
- ///
- /// Invokes on the wrapped object for an input value.
- ///
- /// The type of the current instance.
- /// The input instance to increment the reference count for.
- /// A instance of type .
- [MethodImpl(MethodImplOptions.AggressiveInlining)]
- public static unsafe uint AddRef(this ComPtr ptr)
- where T : unmanaged, IUnknown.Interface
- {
- if (ptr.Get() is not null)
- {
- return ptr.Get()->AddRef();
- }
-
- return 0;
- }
-
- ///
- /// Invokes on the wrapped object for an input value.
- /// If the object has been deleted, it also resets .
- ///
- /// The type of the current instance.
- /// The input instance to release.
- /// A instance of type .
- [MethodImpl(MethodImplOptions.AggressiveInlining)]
- public static unsafe uint Release(this ref ComPtr ptr)
- where T : unmanaged, IUnknown.Interface
- {
- if (ptr.Get() is not null)
- {
- uint count = ptr.Get()->Release();
-
- if (count == 0)
- {
- ptr = default;
- }
-
- return count;
- }
-
- return 0;
- }
-#endif
-
///
/// Reinterprets the current instance as one of type .
///