diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2016-07-07 09:20:02 +0200 |
|---|---|---|
| committer | Rémi Verschelde <rverschelde@gmail.com> | 2016-07-07 23:16:21 +0200 |
| commit | 454b210242ec15a9928324757f27989216bc5a59 (patch) | |
| tree | 7e028a2da14765378e5eee7f71b434bde5038705 /scene/gui/line_edit.cpp | |
| parent | 3fcb9b1ec179b99d979d4cfea9b5e3c80e4a3e33 (diff) | |
| download | redot-engine-454b210242ec15a9928324757f27989216bc5a59.tar.gz | |
Remove unused variables (third pass) + dead code
Fixes various gcc 5.4.0 warnings for -Wunused-variable and -Wunused-but-set-variable
Diffstat (limited to 'scene/gui/line_edit.cpp')
| -rw-r--r-- | scene/gui/line_edit.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/scene/gui/line_edit.cpp b/scene/gui/line_edit.cpp index c025e4c706..d6c018ae8e 100644 --- a/scene/gui/line_edit.cpp +++ b/scene/gui/line_edit.cpp @@ -980,10 +980,6 @@ void LineEdit::set_cursor_pos(int p_pos) { cursor_pos=p_pos; -// if (cursor_pos>(window_pos+get_window_length())) { -// set_window_pos(cursor_pos-get_window_lengt//h()); -// } - if (!is_inside_tree()) { window_pos=cursor_pos; @@ -1002,7 +998,6 @@ void LineEdit::set_cursor_pos(int p_pos) { if (window_width<0) return; - int width_to_cursor=0; int wp=window_pos; if (font.is_valid()) { |
