summaryrefslogtreecommitdiff
path: root/SharedGraphics
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-05-07 16:17:12 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-05-07 16:17:28 +0200
commit1af9b6f10226314080e886ceec69e7ce82e673e5 (patch)
treea333fbcaaaa41556275e499eebc2cafddcabb73b /SharedGraphics
parent922391e772440174e6c1e9e6aedf434a01f02064 (diff)
downloadserenity-1af9b6f10226314080e886ceec69e7ce82e673e5.zip
Painter: Remove unused draw_focus_rect().
Diffstat (limited to 'SharedGraphics')
-rw-r--r--SharedGraphics/Painter.cpp9
-rw-r--r--SharedGraphics/Painter.h1
2 files changed, 0 insertions, 10 deletions
diff --git a/SharedGraphics/Painter.cpp b/SharedGraphics/Painter.cpp
index e56eb3bfce..34b872d429 100644
--- a/SharedGraphics/Painter.cpp
+++ b/SharedGraphics/Painter.cpp
@@ -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()));
diff --git a/SharedGraphics/Painter.h b/SharedGraphics/Painter.h
index fe9cb65307..f9ff6847bc 100644
--- a/SharedGraphics/Painter.h
+++ b/SharedGraphics/Painter.h
@@ -24,7 +24,6 @@ public:
void draw_bitmap(const Point&, const GlyphBitmap&, Color = Color());
void set_pixel(const Point&, Color);
void draw_line(const Point&, const Point&, Color);
- void draw_focus_rect(const Rect&);
void draw_scaled_bitmap(const Rect& dst_rect, const GraphicsBitmap&, const Rect& src_rect);
void blit(const Point&, const GraphicsBitmap&, const Rect& src_rect, float opacity = 1.0f);
void blit_dimmed(const Point&, const GraphicsBitmap&, const Rect& src_rect);