From 098ebb9c4e6b2780f4c00edcb4b568e79b63e677 Mon Sep 17 00:00:00 2001 From: Luca Bacci Date: Wed, 4 Mar 2026 15:32:00 +0100 Subject: [PATCH] D2DFactory: Remove unused method and member object This is likely an innocent copy-paste error, you can't get a DWrite factory from a D2D1 factory. --- src/win32/cairo-dwrite-font.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/win32/cairo-dwrite-font.cpp b/src/win32/cairo-dwrite-font.cpp index 98c61075c..1fcf4691f 100644 --- a/src/win32/cairo-dwrite-font.cpp +++ b/src/win32/cairo-dwrite-font.cpp @@ -156,19 +156,8 @@ public: return mFactoryInstance; } - static RefPtr Instance4() - { - if (!mFactoryInstance4) { - if (Instance()) { - Instance()->QueryInterface(&mFactoryInstance4); - } - } - return mFactoryInstance4; - } - private: static RefPtr mFactoryInstance; - static RefPtr mFactoryInstance4; }; class WICImagingFactory