1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:27:34 +00:00

LibPDF: Remove an unused variable

This commit is contained in:
Nico Weber 2023-07-12 12:29:18 -04:00 committed by Linus Groh
parent 3b686ea6ef
commit 117a5f1bd2

View file

@ -47,7 +47,6 @@ PDFErrorOr<void> SimpleFont::initialize(Document* document, NonnullRefPtr<DictOb
PDFErrorOr<Gfx::FloatPoint> SimpleFont::draw_string(Gfx::Painter& painter, Gfx::FloatPoint glyph_position, DeprecatedString const& string, Color const& paint_color, float font_size, float character_spacing, float horizontal_scaling)
{
auto so = make_object<StringObject>(string, true);
for (auto char_code : string.bytes()) {
// Use the width specified in the font's dictionary if available,
// and use the default width for the given font otherwise.