]> sigrok.org Git - pulseview.git/commitdiff
View: Removed selected_items
authorJoel Holdsworth <redacted>
Wed, 1 Oct 2014 21:02:19 +0000 (22:02 +0100)
committerJoel Holdsworth <redacted>
Wed, 19 Nov 2014 10:23:02 +0000 (10:23 +0000)
pv/view/view.cpp
pv/view/view.h

index 61f017660cab050cc5ae84f0b9d626daef69bcca..372aff252336289e735122332326aa19224af8fd 100644 (file)
@@ -252,26 +252,6 @@ void View::set_scale_offset(double scale, double offset)
        scale_offset_changed();
 }
 
-list<weak_ptr<SelectableItem> > View::selected_items() const
-{
-       list<weak_ptr<SelectableItem> > items;
-
-       // List the selected signals
-       const vector< shared_ptr<RowItem> > row_items(child_items());
-       for (shared_ptr<RowItem> 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<SignalData> > View::get_visible_data() const
 {
        shared_lock<shared_mutex> lock(session().signals_mutex());
index 50fbcf1ce11e64ad47cf8a3d4137759f19a55408..cc06f80dae12ac19dccdb7f00ca0c7971a1d7368 100644 (file)
@@ -110,8 +110,6 @@ public:
         */
        void set_scale_offset(double scale, double offset);
 
-       std::list<std::weak_ptr<SelectableItem> > selected_items() const;
-
        std::set< std::shared_ptr<pv::data::SignalData> >
                get_visible_data() const;