Removed unused variable

This commit is contained in:
Charles Dang 2023-12-23 18:40:45 -05:00
parent f992190267
commit 4ab4b96686

View file

@ -784,22 +784,14 @@ void set_stop_music_in_background(bool ison)
preferences::set("stop_music_in_background", ison);
}
namespace {
double scroll = 0.2;
}
int scroll_speed()
{
const int value = std::clamp<int>(lexical_cast_default<int>(get("scroll"), 50), 1, 100);
scroll = value/100.0;
return value;
return std::clamp<int>(lexical_cast_default<int>(get("scroll"), 50), 1, 100);
}
void set_scroll_speed(const int new_speed)
{
prefs["scroll"] = new_speed;
scroll = new_speed / 100.0;
}
bool middle_click_scrolls()