From 2f5d659e78444f53834c6f340159c29d2afc9939 Mon Sep 17 00:00:00 2001 From: Yousef Khadadeh Date: Fri, 21 Nov 2025 22:32:37 -0800 Subject: [PATCH] Removed unused variable --- src/FontData.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/FontData.cpp b/src/FontData.cpp index 13eee6c..71479c9 100644 --- a/src/FontData.cpp +++ b/src/FontData.cpp @@ -9,8 +9,6 @@ #elif __APPLE__ #include #include -#include - CTFontCollectionRef fontCollectionRef = nullptr; #elif _WIN32 #include #include "WindowsFontData/CustomFontSetManager.h" @@ -91,10 +89,6 @@ void FontData::push_default_font_families(std::vector& fontFamilies) c } FontData::~FontData() { -#ifdef __APPLE__ - if(fontCollectionRef) - CFRelease(fontCollectionRef); -#endif } Vector2f get_str_font_bounds(const SkFont& font, const std::string& str) {