Pārlūkot izejas kodu

LibGfx: Remove debug spam from FontDatabase lookups

Andreas Kling 4 gadi atpakaļ
vecāks
revīzija
57a345a590
1 mainītis faili ar 0 papildinājumiem un 3 dzēšanām
  1. 0 3
      Userland/Libraries/LibGfx/FontDatabase.cpp

+ 0 - 3
Userland/Libraries/LibGfx/FontDatabase.cpp

@@ -31,7 +31,6 @@
 #include <LibGfx/FontDatabase.h>
 #include <LibGfx/Typeface.h>
 #include <LibTTF/Font.h>
-#include <dirent.h>
 #include <stdio.h>
 #include <stdlib.h>
 
@@ -159,7 +158,6 @@ RefPtr<Gfx::Font> FontDatabase::get_by_name(const StringView& name)
 
 RefPtr<Gfx::Font> FontDatabase::get(const String& family, unsigned size, unsigned weight)
 {
-    dbgln("FontDatabase: Request font {} {} {}", family, size, weight);
     for (auto typeface : m_private->typefaces) {
         if (typeface->family() == family && typeface->weight() == weight)
             return typeface->get_font(size);
@@ -169,7 +167,6 @@ RefPtr<Gfx::Font> FontDatabase::get(const String& family, unsigned size, unsigne
 
 RefPtr<Gfx::Font> FontDatabase::get(const String& family, const String& variant, unsigned size)
 {
-    dbgln("FontDatabase: Request font {} {} {}", family, variant, size);
     for (auto typeface : m_private->typefaces) {
         if (typeface->family() == family && typeface->variant() == variant)
             return typeface->get_font(size);