Browse Source

LibGfx: Remove debug spam from FontDatabase lookups

Andreas Kling 4 năm trước cách đây
mục cha
commit
57a345a590

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

@@ -31,7 +31,6 @@
 #include <LibGfx/FontDatabase.h>
 #include <LibGfx/FontDatabase.h>
 #include <LibGfx/Typeface.h>
 #include <LibGfx/Typeface.h>
 #include <LibTTF/Font.h>
 #include <LibTTF/Font.h>
-#include <dirent.h>
 #include <stdio.h>
 #include <stdio.h>
 #include <stdlib.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)
 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) {
     for (auto typeface : m_private->typefaces) {
         if (typeface->family() == family && typeface->weight() == weight)
         if (typeface->family() == family && typeface->weight() == weight)
             return typeface->get_font(size);
             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)
 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) {
     for (auto typeface : m_private->typefaces) {
         if (typeface->family() == family && typeface->variant() == variant)
         if (typeface->family() == family && typeface->variant() == variant)
             return typeface->get_font(size);
             return typeface->get_font(size);