From c8832807d62e8301b5ff63151ad4c0534c463152 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Tue, 31 Jan 2023 18:58:40 -0500 Subject: [PATCH] LibGfx+Tests: Remove code unnecessary after 9e7c16d0a44052e598103 --- Tests/LibGfx/BenchmarkGfxPainter.cpp | 9 --------- Userland/Libraries/LibGfx/Painter.cpp | 1 - 2 files changed, 10 deletions(-) diff --git a/Tests/LibGfx/BenchmarkGfxPainter.cpp b/Tests/LibGfx/BenchmarkGfxPainter.cpp index 18c0deadc6..7117727ec8 100644 --- a/Tests/LibGfx/BenchmarkGfxPainter.cpp +++ b/Tests/LibGfx/BenchmarkGfxPainter.cpp @@ -11,15 +11,6 @@ #include #include -// Make sure that no matter what order tests are run in, we've got some -// default fonts for the application to use without talking to WindowServer -static struct FontDatabaseSpoofer { - FontDatabaseSpoofer() - { - Gfx::FontDatabase::the().set_default_font_query("Katica 10 400 0"sv); - } -} g_spoof; - BENCHMARK_CASE(diagonal_lines) { int const run_count = 50; diff --git a/Userland/Libraries/LibGfx/Painter.cpp b/Userland/Libraries/LibGfx/Painter.cpp index 6d804410be..ccf5000d40 100644 --- a/Userland/Libraries/LibGfx/Painter.cpp +++ b/Userland/Libraries/LibGfx/Painter.cpp @@ -14,7 +14,6 @@ #include "Bitmap.h" #include "Font/Emoji.h" #include "Font/Font.h" -#include "Font/FontDatabase.h" #include "Gamma.h" #include #include