button: remove unused width variable

Fixes -Wunused-variable warning
This commit is contained in:
lifehackerhansol 2024-10-04 23:08:46 -07:00
parent bd4b817c87
commit 802463dfe7
No known key found for this signature in database
GPG Key ID: 80FB184AFC0B3B0E

View File

@ -174,10 +174,8 @@ void cButtonDesc::draw(const cRect& area, GRAPHICS_ENGINE engine) const {
}
void cButtonDesc::loadData(const std::string& filename) {
int width = 40;
int height = 16;
if (_button) {
width = _button->size().x;
height = _button->size().y;
}