Преглед на файлове

LibPDF: Remove unused PDFFont::type()

This got added in #15270, but its one use then got removed again
in #16150.

No behavior change.
Nico Weber преди 1 година
родител
ревизия
843e9daa8c

+ 0 - 7
Userland/Libraries/LibPDF/Fonts/PDFFont.h

@@ -16,12 +16,6 @@ namespace PDF {
 
 class PDFFont : public RefCounted<PDFFont> {
 public:
-    enum class Type {
-        Type0,
-        Type1,
-        TrueType
-    };
-
     static PDFErrorOr<NonnullRefPtr<PDFFont>> create(Document*, NonnullRefPtr<DictObject> const&, float font_size);
 
     virtual ~PDFFont() = default;
@@ -29,7 +23,6 @@ public:
     virtual void set_font_size(float font_size) = 0;
     virtual PDFErrorOr<Gfx::FloatPoint> draw_string(Gfx::Painter&, Gfx::FloatPoint, DeprecatedString const&, Color const&, float font_size, float character_spacing, float word_spacing, float horizontal_scaling) = 0;
 
-    virtual Type type() const = 0;
     DeprecatedFlyString base_font_name() const { return m_base_font_name; }
 
 protected:

+ 0 - 1
Userland/Libraries/LibPDF/Fonts/TrueTypeFont.h

@@ -17,7 +17,6 @@ public:
     Optional<float> get_glyph_width(u8 char_code) const override;
     void set_font_size(float font_size) override;
     void draw_glyph(Gfx::Painter&, Gfx::FloatPoint, float, u8, Color) override;
-    Type type() const override { return PDFFont::Type::TrueType; }
 
 protected:
     PDFErrorOr<void> initialize(Document*, NonnullRefPtr<DictObject> const&, float font_size) override;

+ 0 - 1
Userland/Libraries/LibPDF/Fonts/Type0Font.h

@@ -27,7 +27,6 @@ public:
 
     void set_font_size(float font_size) override;
     PDFErrorOr<Gfx::FloatPoint> draw_string(Gfx::Painter&, Gfx::FloatPoint pos, DeprecatedString const&, Color const&, float, float, float, float) override;
-    Type type() const override { return PDFFont::Type::Type0; }
 
 protected:
     PDFErrorOr<void> initialize(Document*, NonnullRefPtr<DictObject> const&, float) override;

+ 0 - 1
Userland/Libraries/LibPDF/Fonts/Type1Font.h

@@ -25,7 +25,6 @@ public:
     Optional<float> get_glyph_width(u8 char_code) const override;
     void set_font_size(float font_size) override;
     void draw_glyph(Gfx::Painter& painter, Gfx::FloatPoint point, float width, u8 char_code, Color color) override;
-    Type type() const override { return PDFFont::Type::Type1; }
 
 protected:
     PDFErrorOr<void> initialize(Document*, NonnullRefPtr<DictObject> const&, float font_size) override;