From 352f77083df3d6d2e9e8bddd27f224aa81ecd7ca Mon Sep 17 00:00:00 2001 From: reuk Date: Thu, 17 Apr 2025 12:41:06 +0100 Subject: [PATCH] DirectX: Remove unused ScopedMultithread --- .../juce_graphics/native/juce_DirectX_windows.cpp | 11 ----------- modules/juce_graphics/native/juce_DirectX_windows.h | 13 ------------- 2 files changed, 24 deletions(-) diff --git a/modules/juce_graphics/native/juce_DirectX_windows.cpp b/modules/juce_graphics/native/juce_DirectX_windows.cpp index 8d7c4593f7..8ff413abcd 100644 --- a/modules/juce_graphics/native/juce_DirectX_windows.cpp +++ b/modules/juce_graphics/native/juce_DirectX_windows.cpp @@ -37,17 +37,6 @@ namespace juce constexpr auto enableDirectXDebugLayer = false; -ScopedMultithread::ScopedMultithread (ID2D1Multithread* multithreadIn) - : multithread (addComSmartPtrOwner (multithreadIn)) -{ - multithreadIn->Enter(); -} - -ScopedMultithread::~ScopedMultithread() -{ - multithread->Leave(); -} - //============================================================================== ScopedGeometryWithSink::ScopedGeometryWithSink (ID2D1Factory* factory, D2D1_FILL_MODE fillMode) { diff --git a/modules/juce_graphics/native/juce_DirectX_windows.h b/modules/juce_graphics/native/juce_DirectX_windows.h index e61b890980..38fc077e4a 100644 --- a/modules/juce_graphics/native/juce_DirectX_windows.h +++ b/modules/juce_graphics/native/juce_DirectX_windows.h @@ -35,19 +35,6 @@ namespace juce { -class ScopedMultithread -{ -public: - explicit ScopedMultithread (ID2D1Multithread* multithreadIn); - - ~ScopedMultithread(); - -private: - JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ScopedMultithread) - - ComSmartPtr multithread; -}; - /* ScopedGeometryWithSink creates an ID2D1PathGeometry object with an open sink. */ struct ScopedGeometryWithSink {