1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 11:47:35 +00:00

LibPDF: Remove unused PDFFont::type()

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

No behavior change.
This commit is contained in:
Nico Weber 2023-11-14 08:17:42 -05:00 committed by Sam Atkins
parent 26fd29baf8
commit 843e9daa8c
4 changed files with 0 additions and 10 deletions

View file

@ -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:

View file

@ -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;

View file

@ -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;

View file

@ -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;