13
0

remove unused "beats" variable and computation from Editor::metric_get_bbt()

This commit is contained in:
Paul Davis 2023-02-10 11:06:44 -07:00
parent 441a6ec069
commit 03b32cb4a0

View File

@ -1154,7 +1154,6 @@ Editor::metric_get_bbt (std::vector<ArdourCanvas::Ruler::Mark>& marks, int64_t l
char buf[64];
Temporal::BBT_Time next_beat;
uint32_t beats = 0;
double bbt_position_of_helper;
bool helper_active = false;
ArdourCanvas::Ruler::Mark mark;
@ -1339,8 +1338,6 @@ Editor::metric_get_bbt (std::vector<ArdourCanvas::Ruler::Mark>& marks, int64_t l
case bbt_show_quarters:
beats = distance (grid.begin(), grid.end());
mark.label = "";
mark.position = lower;
mark.style = ArdourCanvas::Ruler::Mark::Micro;
@ -1378,8 +1375,6 @@ Editor::metric_get_bbt (std::vector<ArdourCanvas::Ruler::Mark>& marks, int64_t l
case bbt_show_sixtyfourths:
case bbt_show_onetwentyeighths:
beats = distance (grid.begin(), grid.end());
bbt_position_of_helper = lower + (3 * Editor::get_current_zoom ());
mark.label = "";