mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Remove unused variables (third pass) + dead code
Fixes various gcc 5.4.0 warnings for -Wunused-variable and -Wunused-but-set-variable
This commit is contained in:
@@ -51,7 +51,6 @@ void ProgressBar::_notification(int p_what) {
|
||||
Ref<StyleBox> fg = get_stylebox("fg");
|
||||
Ref<Font> font = get_font("font");
|
||||
Color font_color=get_color("font_color");
|
||||
Color font_color_shadow=get_color("font_color_shadow");
|
||||
|
||||
draw_style_box(bg,Rect2(Point2(),get_size()));
|
||||
float r = get_unit_value();
|
||||
@@ -63,7 +62,6 @@ void ProgressBar::_notification(int p_what) {
|
||||
}
|
||||
|
||||
if (percent_visible) {
|
||||
int fh=font->get_height();
|
||||
String txt=itos(int(get_unit_value()*100))+"%";
|
||||
font->draw_halign(get_canvas_item(),Point2(0,font->get_ascent()+(get_size().height-font->get_height())/2),HALIGN_CENTER,get_size().width,txt,font_color);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user