From 6dc3a4bf61b0b5cd7947af6c5c9099f09c32b934 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 28 Oct 2014 01:27:14 +0100 Subject: remove unused old API --- libs/canvas/canvas.cc | 10 ---------- libs/canvas/canvas/canvas.h | 4 ---- 2 files changed, 14 deletions(-) (limited to 'libs') diff --git a/libs/canvas/canvas.cc b/libs/canvas/canvas.cc index 133e09484c..02127da36a 100644 --- a/libs/canvas/canvas.cc +++ b/libs/canvas/canvas.cc @@ -730,18 +730,8 @@ GtkCanvas::on_expose_event (GdkEventExpose* ev) Cairo::RefPtr cairo_context = get_window()->create_cairo_context (); render (Rect (ev->area.x, ev->area.y, ev->area.x + ev->area.width, ev->area.y + ev->area.height), cairo_context); return true; -} -/** @return Our Cairo context, or 0 if we don't have one */ -Cairo::RefPtr -GtkCanvas::context () -{ - Glib::RefPtr w = get_window (); - if (!w) { - return Cairo::RefPtr (); - } - return w->create_cairo_context (); } /** Handler for GDK scroll events. diff --git a/libs/canvas/canvas/canvas.h b/libs/canvas/canvas/canvas.h index c27a26be26..c45908f0b3 100644 --- a/libs/canvas/canvas/canvas.h +++ b/libs/canvas/canvas/canvas.h @@ -94,8 +94,6 @@ public: void item_changed (Item *, boost::optional); void item_moved (Item *, boost::optional); - virtual Cairo::RefPtr context () = 0; - Duple canvas_to_window (Duple const&, bool rounded = true) const; Duple window_to_canvas (Duple const&) const; @@ -180,8 +178,6 @@ public: void focus (Item *); void unfocus (Item*); - Cairo::RefPtr context (); - Rect visible_area () const; Coord width() const; Coord height() const; -- cgit v1.2.3