13
0

remove unused old API

This commit is contained in:
Robin Gareus 2014-10-28 01:27:14 +01:00
parent 8dc41bb700
commit 6dc3a4bf61
2 changed files with 0 additions and 14 deletions

View File

@ -730,18 +730,8 @@ GtkCanvas::on_expose_event (GdkEventExpose* ev)
Cairo::RefPtr<Cairo::Context> 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<Cairo::Context>
GtkCanvas::context ()
{
Glib::RefPtr<Gdk::Window> w = get_window ();
if (!w) {
return Cairo::RefPtr<Cairo::Context> ();
}
return w->create_cairo_context ();
}
/** Handler for GDK scroll events.

View File

@ -94,8 +94,6 @@ public:
void item_changed (Item *, boost::optional<Rect>);
void item_moved (Item *, boost::optional<Rect>);
virtual Cairo::RefPtr<Cairo::Context> 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<Cairo::Context> context ();
Rect visible_area () const;
Coord width() const;
Coord height() const;