changes to integrate new/recent/browse in new session dialog.
[ardour.git] / gtk2_ardour / tempo_lines.cc
index 962acbd37d04ddf0c49960de838d7616955f0657..97aa662c38549779db1a67b9c38880c81a0469c8 100644 (file)
@@ -129,7 +129,6 @@ TempoLines::draw (const ARDOUR::TempoMap::BBTPointList::const_iterator& begin,
 
        //cout << endl << "*** LINE CACHE MISS" << endl;
 
-       bool inserted_last_time = true;
        bool invalidated = false;
 
        for (i = begin; i != end; ++i) {
@@ -162,7 +161,6 @@ TempoLines::draw (const ARDOUR::TempoMap::BBTPointList::const_iterator& begin,
                                ++li;
                        
                        line->property_color_rgba() = color;
-                       inserted_last_time = false; // don't search next time
                        // Use existing line, moving if necessary
                } else if (!exhausted) {
                        Lines::iterator steal = _lines.end();
@@ -178,7 +176,6 @@ TempoLines::draw (const ARDOUR::TempoMap::BBTPointList::const_iterator& begin,
                                line->property_x2() = xpos;
                                line->property_color_rgba() = color;
                                _lines.insert(make_pair(xpos, line));
-                               inserted_last_time = true; // search next time
                                invalidated = true;
                                
                                // Shift clean range left
@@ -192,7 +189,6 @@ TempoLines::draw (const ARDOUR::TempoMap::BBTPointList::const_iterator& begin,
                                        //cout << "*** EXISTING LINE" << endl;
                                        li = existing;
                                        li->second->property_color_rgba() = color;
-                                       inserted_last_time = false; // don't search next time
                                } else {
                                        //cout << "*** MOVING LINE" << endl;
                                        const double x1 = line->property_x1();
@@ -206,7 +202,6 @@ TempoLines::draw (const ARDOUR::TempoMap::BBTPointList::const_iterator& begin,
                                        line->property_x1() = xpos;
                                        line->property_x2() = xpos;
                                        _lines.insert(make_pair(xpos, line));
-                                       inserted_last_time = true; // search next time
                                }
                        }
                        
@@ -222,7 +217,6 @@ TempoLines::draw (const ARDOUR::TempoMap::BBTPointList::const_iterator& begin,
                                line->property_y2() = _height;
                                line->property_color_rgba() = color;
                                _lines.insert(make_pair(xpos, line));
-                               inserted_last_time = true;
                        }
                        
                        // Steal from the left
@@ -237,7 +231,6 @@ TempoLines::draw (const ARDOUR::TempoMap::BBTPointList::const_iterator& begin,
                                line->property_x1() = xpos;
                                line->property_x2() = xpos;
                                _lines.insert(make_pair(xpos, line));
-                               inserted_last_time = true; // search next time
                                invalidated = true;
                        
                                // Shift clean range right