From 802463dfe71a86e80370a0ad5dbe7739141cbbe6 Mon Sep 17 00:00:00 2001 From: lifehackerhansol Date: Fri, 4 Oct 2024 23:08:46 -0700 Subject: [PATCH] button: remove unused width variable Fixes -Wunused-variable warning --- arm9/source/ui/button.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/arm9/source/ui/button.cpp b/arm9/source/ui/button.cpp index 29905d1..2dad455 100644 --- a/arm9/source/ui/button.cpp +++ b/arm9/source/ui/button.cpp @@ -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; }