option to ignore feedback detection - /i know what i'm doing/ mode.
[ardour.git] / libs / ardour / ardour / region_sorters.h
index ca09f194b1abe0b261da669dc86b535a4a08dce4..baa3a3417d7b4811a09f04188bbf71a0ccd11566 100644 (file)
 namespace ARDOUR {
 
 struct RegionSortByPosition {
-    bool operator() (boost::shared_ptr<Region> a, boost::shared_ptr<Region> b) {
-           return a->position() < b->position();
-    }
-};
-
-struct RegionSortByLastLayerOp {
-    bool operator() (boost::shared_ptr<Region> a, boost::shared_ptr<Region> b) {
-           return a->last_layer_op() < b->last_layer_op();
-    }
+       bool operator() (boost::shared_ptr<Region> a, boost::shared_ptr<Region> b) {
+               return a->position() < b->position();
+       }
 };
 
 struct RegionSortByLayer {
-    bool operator() (boost::shared_ptr<Region> a, boost::shared_ptr<Region> b) {
-           return a->layer() < b->layer();
-    }
-};
-
-struct RegionSortByLayerWithPending {
-       bool operator () (boost::shared_ptr<Region> a, boost::shared_ptr<Region> b) {
-
-               double p = a->layer ();
-               if (a->pending_explicit_relayer()) {
-                       p += 0.5;
-               }
-
-               double q = b->layer ();
-               if (b->pending_explicit_relayer()) {
-                       q += 0.5;
-               }
-
-               return p < q;
+       bool operator() (boost::shared_ptr<Region> a, boost::shared_ptr<Region> b) {
+               return a->layer() < b->layer();
        }
 };
 
-} // namespace 
+} // namespace
 
 #endif /* __libardour_region_sorters_h__ */