From e8f3fda3cfe1de3be8be7cfdd4a1f00eb30dea49 Mon Sep 17 00:00:00 2001 From: thankyouverycool <66646555+thankyouverycool@users.noreply.github.com> Date: Tue, 21 Sep 2021 17:49:13 -0400 Subject: [PATCH] FontEditor: Remove reprobe_font() This was used to update GlyphMapWidget on Type changes and is no longer needed since removal of Type enumeration in bb592ae. --- Userland/Applications/FontEditor/GlyphMapWidget.cpp | 8 -------- Userland/Applications/FontEditor/GlyphMapWidget.h | 1 - 2 files changed, 9 deletions(-) diff --git a/Userland/Applications/FontEditor/GlyphMapWidget.cpp b/Userland/Applications/FontEditor/GlyphMapWidget.cpp index 7de38a3e0a..29fa63ee8a 100644 --- a/Userland/Applications/FontEditor/GlyphMapWidget.cpp +++ b/Userland/Applications/FontEditor/GlyphMapWidget.cpp @@ -72,14 +72,6 @@ void GlyphMapWidget::update_glyph(int glyph) update(get_outer_rect(glyph)); } -void GlyphMapWidget::reprobe_font() -{ - VERIFY(m_font); - m_glyph_count = m_font->glyph_count(); - m_selected_glyph = 0; - update(); -} - void GlyphMapWidget::paint_event(GUI::PaintEvent& event) { GUI::Frame::paint_event(event); diff --git a/Userland/Applications/FontEditor/GlyphMapWidget.h b/Userland/Applications/FontEditor/GlyphMapWidget.h index af95f6e050..18f26155fc 100644 --- a/Userland/Applications/FontEditor/GlyphMapWidget.h +++ b/Userland/Applications/FontEditor/GlyphMapWidget.h @@ -27,7 +27,6 @@ public: const Gfx::BitmapFont& font() const { return *m_font; } void update_glyph(int); - void reprobe_font(); Function on_glyph_selected;