From: Joel Holdsworth Date: Wed, 1 Oct 2014 21:02:19 +0000 (+0100) Subject: View: Removed selected_items X-Git-Tag: pulseview-0.3.0~469 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=bcaa184ed439d801cb1a56b877bb2763246150da;p=pulseview.git View: Removed selected_items --- diff --git a/pv/view/view.cpp b/pv/view/view.cpp index 61f01766..372aff25 100644 --- a/pv/view/view.cpp +++ b/pv/view/view.cpp @@ -252,26 +252,6 @@ void View::set_scale_offset(double scale, double offset) scale_offset_changed(); } -list > View::selected_items() const -{ - list > items; - - // List the selected signals - const vector< shared_ptr > row_items(child_items()); - for (shared_ptr r : row_items) { - if (r && r->selected()) - items.push_back(r); - } - - // List the selected cursors - if (_cursors.first()->selected()) - items.push_back(_cursors.first()); - if (_cursors.second()->selected()) - items.push_back(_cursors.second()); - - return items; -} - set< shared_ptr > View::get_visible_data() const { shared_lock lock(session().signals_mutex()); diff --git a/pv/view/view.h b/pv/view/view.h index 50fbcf1c..cc06f80d 100644 --- a/pv/view/view.h +++ b/pv/view/view.h @@ -110,8 +110,6 @@ public: */ void set_scale_offset(double scale, double offset); - std::list > selected_items() const; - std::set< std::shared_ptr > get_visible_data() const;