1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Removed isActive(int) method since its usages were redundant or wrong

This commit is contained in:
Ivan Savenko
2023-05-20 01:39:06 +03:00
parent c77f8482e3
commit a4000f2fc8
6 changed files with 4 additions and 59 deletions

View File

@@ -557,8 +557,7 @@ void CVolumeSlider::wheelScrolled(bool down, bool in)
void CSlider::sliderClicked()
{
if(!isActive(MOVE))
addUsedEvents(MOVE);
addUsedEvents(MOVE);
}
void CSlider::mouseMoved (const Point & cursorPosition)
@@ -699,8 +698,7 @@ void CSlider::clickLeft(tribool down, bool previousState)
moveTo((int)(rw * positions + 0.5));
return;
}
if(isActive(MOVE))
removeUsedEvents(MOVE);
removeUsedEvents(MOVE);
}
CSlider::CSlider(Point position, int totalw, std::function<void(int)> Moved, int Capacity, int Amount, int Value, bool Horizontal, CSlider::EStyle style)