You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-23 15:16:17 +00:00
Merge pull request #29941 from qarmin/redundant_code_and_others
Remove redundant code, possible NULL pointers and others
This commit is contained in:
@@ -623,10 +623,7 @@ bool LineEdit::_is_over_clear_button(const Point2 &p_pos) const {
|
||||
}
|
||||
Ref<Texture> icon = Control::get_icon("clear");
|
||||
int x_ofs = get_stylebox("normal")->get_offset().x;
|
||||
if (p_pos.x > get_size().width - icon->get_width() - x_ofs) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return p_pos.x > get_size().width - icon->get_width() - x_ofs;
|
||||
}
|
||||
|
||||
void LineEdit::_notification(int p_what) {
|
||||
|
||||
Reference in New Issue
Block a user