Merge pull request #29941 from qarmin/redundant_code_and_others
Remove redundant code, possible NULL pointers and others
This commit is contained in:
commit
eaaff9da31
175 changed files with 467 additions and 674 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue