1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:18:11 +00:00

Painter: Remove unused draw_focus_rect().

This commit is contained in:
Andreas Kling 2019-05-07 16:17:12 +02:00
parent 922391e772
commit 1af9b6f102
2 changed files with 0 additions and 10 deletions

View file

@ -547,15 +547,6 @@ void Painter::draw_line(const Point& p1, const Point& p2, Color color)
}
}
void Painter::draw_focus_rect(const Rect& rect)
{
Rect focus_rect = rect;
focus_rect.move_by(1, 1);
focus_rect.set_width(focus_rect.width() - 2);
focus_rect.set_height(focus_rect.height() - 2);
draw_rect(focus_rect, Color::from_rgb(0x84351a));
}
void Painter::add_clip_rect(const Rect& rect)
{
state().clip_rect.intersect(rect.translated(m_clip_origin.location()));