summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2023-01-31 18:58:40 -0500
committerTim Flynn <trflynn89@pm.me>2023-02-01 08:56:56 -0500
commitc8832807d62e8301b5ff63151ad4c0534c463152 (patch)
tree040e0921e74c47fe6e6f21ca843d0c2d77742a00
parentbea3f3fc46fed2b43dbf822df9a84c111ad6d17f (diff)
downloadserenity-c8832807d62e8301b5ff63151ad4c0534c463152.zip
LibGfx+Tests: Remove code unnecessary after 9e7c16d0a44052e598103
-rw-r--r--Tests/LibGfx/BenchmarkGfxPainter.cpp9
-rw-r--r--Userland/Libraries/LibGfx/Painter.cpp1
2 files changed, 0 insertions, 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 <LibGfx/Painter.h>
#include <stdio.h>
-// 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 <AK/Assertions.h>
#include <AK/Debug.h>