diff options
Diffstat (limited to 'gtk2_ardour/editor_canvas.cc')
-rw-r--r-- | gtk2_ardour/editor_canvas.cc | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/gtk2_ardour/editor_canvas.cc b/gtk2_ardour/editor_canvas.cc index d999c1187e..8db3ce7556 100644 --- a/gtk2_ardour/editor_canvas.cc +++ b/gtk2_ardour/editor_canvas.cc @@ -373,12 +373,6 @@ Editor::reset_scrolling_region (Gtk::Allocation* alloc) } } - RefPtr<Gdk::Screen> screen = get_screen(); - - if (!screen) { - screen = Gdk::Screen::get_default(); - } - double last_canvas_unit = ceil ((double) max_frames / frames_per_unit); track_canvas.set_scroll_region (0.0, 0.0, max (last_canvas_unit, canvas_width), pos); |