virtualx-engine/scene/2d
Rémi Verschelde d95bbb8922 Fix warnings about set but unused variables [-Wunused-but-set-variable]
Fixes the following GCC 5 warnings:
```
drivers/gles2/rasterizer_canvas_gles2.cpp:814:8: warning: variable 'rt_size' set but not used [-Wunused-but-set-variable]
drivers/gles2/rasterizer_scene_gles2.cpp:2270:11: warning: variable 'vp_height' set but not used [-Wunused-but-set-variable]
drivers/gles2/rasterizer_scene_gles2.cpp:2673:22: warning: variable 'e' set but not used [-Wunused-but-set-variable]
drivers/gles2/rasterizer_scene_gles2.cpp:715:7: warning: variable 'no_cull' set but not used [-Wunused-but-set-variable]
drivers/gles2/shader_gles2.cpp:693:14: warning: variable 'cc' set but not used [-Wunused-but-set-variable]
drivers/gles3/rasterizer_canvas_gles3.cpp:1226:8: warning: variable 'rt_size' set but not used [-Wunused-but-set-variable]
drivers/gles3/rasterizer_scene_gles3.cpp:3039:10: warning: variable 'contrib' set but not used [-Wunused-but-set-variable]
drivers/gles3/rasterizer_scene_gles3.cpp:4504:32: warning: variable 'vp_height' set but not used [-Wunused-but-set-variable]
editor/editor_inspector.cpp:272:9: warning: variable 'guide_color' set but not used [-Wunused-but-set-variable]
editor/editor_themes.cpp:1067:14: warning: variable 'alpha3' set but not used [-Wunused-but-set-variable]
editor/editor_themes.cpp:263:8: warning: variable 'script_bg_color' set but not used [-Wunused-but-set-variable]
editor/plugins/collision_shape_2d_editor_plugin.cpp:326:11: warning: variable 'cpoint' set but not used [-Wunused-but-set-variable]
editor/plugins/mesh_editor_plugin.cpp:72:9: warning: variable 'size' set but not used [-Wunused-but-set-variable]
editor/plugins/shader_editor_plugin.cpp:471:12: warning: variable 'mpos' set but not used [-Wunused-but-set-variable]
editor/plugins/shader_editor_plugin.cpp:89:8: warning: variable 'basetype_color' set but not used [-Wunused-but-set-variable]
editor/plugins/shader_editor_plugin.cpp:90:8: warning: variable 'type_color' set but not used [-Wunused-but-set-variable]
editor/plugins/shader_editor_plugin.cpp:92:8: warning: variable 'string_color' set but not used [-Wunused-but-set-variable]
modules/visual_script/visual_script_editor.cpp:2521:7: warning: variable 'seq_connect' set but not used [-Wunused-but-set-variable]
platform/android/export/export.cpp:580:12: warning: variable 'styles_count' set but not used [-Wunused-but-set-variable]
platform/android/export/export.cpp:584:12: warning: variable 'styles_offset' set but not used [-Wunused-but-set-variable]
platform/osx/export/export.cpp:464:9: warning: variable 'zerr' set but not used [-Wunused-but-set-variable]
scene/2d/tile_map.cpp:260:10: warning: variable 'tcenter' set but not used [-Wunused-but-set-variable]
scene/3d/light.cpp:166:7: warning: variable 'editor_ok' set but not used [-Wunused-but-set-variable]
scene/3d/navigation.cpp:566:11: warning: variable 'closest_navmesh' set but not used [-Wunused-but-set-variable]
scene/gui/rich_text_label.cpp:869:8: warning: variable 'size' set but not used [-Wunused-but-set-variable]
scene/main/viewport.cpp:705:14: warning: variable 'xform' set but not used [-Wunused-but-set-variable]
scene/main/viewport.cpp:706:8: warning: variable 'ss' set but not used [-Wunused-but-set-variable]
scene/main/viewport.cpp:726:14: warning: variable 'xform' set but not used [-Wunused-but-set-variable]
scene/main/viewport.cpp:727:8: warning: variable 'ss' set but not used [-Wunused-but-set-variable]
scene/resources/material.cpp:430:7: warning: variable 'using_world' set but not used [-Wunused-but-set-variable]
servers/visual/shader_language.cpp:2026:7: warning: variable 'all_const' set but not used [-Wunused-but-set-variable]
servers/visual/visual_server_scene.cpp:1383:28: warning: variable 'z_max_cam' set but not used [-Wunused-but-set-variable]
```

Also fixes two [-Wunused-value] warnings:
```
scene/gui/text_edit.cpp:4405:20: warning: statement has no effect [-Wunused-value]
servers/visual/visual_server_scene.cpp:905:48: warning: value computed is not used [-Wunused-value]
```

Some of those are bugs and need further work, they are identified with
`// FIXME` comments.
2018-09-27 16:25:24 +02:00
..
animated_sprite.cpp Revert "Drop deprecated compatibility methods from AnimatedSprite" 2018-09-13 02:32:51 +02:00
animated_sprite.h Revert "Drop deprecated compatibility methods from AnimatedSprite" 2018-09-13 02:32:51 +02:00
area_2d.cpp Allow editing of some unbound properties when hinted (or no range hinted) 2018-05-16 09:13:41 -03:00
area_2d.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
audio_stream_player_2d.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
audio_stream_player_2d.h Improved stream paused fade code 2018-07-09 21:58:33 -03:00
back_buffer_copy.cpp Fixes the bad calculation of margin & anchors when child of Node2D 2018-06-07 21:25:15 +02:00
back_buffer_copy.h Fixes the bad calculation of margin & anchors when child of Node2D 2018-06-07 21:25:15 +02:00
camera_2d.cpp Fix Camera2D drag margin property is affected by zoom property #18912 2018-05-16 01:53:38 +02:00
camera_2d.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
canvas_item.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
canvas_item.h Misc. typos 2018-09-12 21:39:17 -04:00
canvas_modulate.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
canvas_modulate.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
collision_object_2d.cpp Improve ClassDB information for some some signal parameters 2018-09-01 18:05:51 +08:00
collision_object_2d.h Further fixes to KinematicBody2D API, support for sync motion in moving objects 2018-07-17 08:58:04 -03:00
collision_polygon_2d.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
collision_polygon_2d.h Remove the selection rect for nodes that do not require it 2018-04-03 22:04:19 +02:00
collision_shape_2d.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
collision_shape_2d.h Remove the selection rect for nodes that do not require it 2018-04-03 22:04:19 +02:00
cpu_particles_2d.cpp Move ParticlesMaterial code to its own resource file 2018-09-04 11:32:56 +02:00
cpu_particles_2d.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
joints_2d.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
joints_2d.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
light_2d.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
light_2d.h Fixes the bad calculation of margin & anchors when child of Node2D 2018-06-07 21:25:15 +02:00
light_occluder_2d.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
light_occluder_2d.h Fix binding some core API methods only in tools builds 2018-04-29 19:49:26 +02:00
line_2d.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
line_2d.h Line2D texture stretch mode 2018-07-16 23:16:58 +02:00
line_builder.cpp Removed unnecessary assignments 2018-07-24 09:51:03 +02:00
line_builder.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
mesh_instance_2d.cpp Add missing copyright headers 2018-05-16 14:50:44 -03:00
mesh_instance_2d.h Add missing copyright headers 2018-05-16 14:50:44 -03:00
navigation2d.cpp Better heuristic for the shortest path algorithm for navigation2D and navigation. 2018-09-20 21:23:17 +02:00
navigation2d.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
navigation_polygon.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
navigation_polygon.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
node_2d.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
node_2d.h Remove the selection rect for nodes that do not require it 2018-04-03 22:04:19 +02:00
parallax_background.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
parallax_background.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
parallax_layer.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
parallax_layer.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
particles_2d.cpp Move ParticlesMaterial code to its own resource file 2018-09-04 11:32:56 +02:00
particles_2d.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
path_2d.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
path_2d.h Remove the selection rect for nodes that do not require it 2018-04-03 22:04:19 +02:00
path_texture.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
path_texture.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
physics_body_2d.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
physics_body_2d.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
polygon_2d.cpp Make some debug prints verbose-only, remove others 2018-08-24 14:59:01 +02:00
polygon_2d.h WIP Polygon2D weight editing 2018-05-02 11:01:12 -03:00
position_2d.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
position_2d.h Remove the selection rect for nodes that do not require it 2018-04-03 22:04:19 +02:00
ray_cast_2d.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
ray_cast_2d.h Changes to ClippedCamera, RayCast,Raycast2D and 2D physics API to add ability to choose between bodies and areas when colliding. 2018-08-21 15:31:23 -03:00
remote_transform_2d.cpp Fix transform not being applied properly after toggling remote node, fixes #17671 2018-08-23 12:29:33 -03:00
remote_transform_2d.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
screen_button.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
screen_button.h Fixes the bad calculation of margin & anchors when child of Node2D 2018-06-07 21:25:15 +02:00
SCsub style: Fix PEP8 whitespace issues in Python files 2016-11-01 00:35:16 +01:00
skeleton_2d.cpp Fix arg name in docs, some copy-paste errors 2018-08-21 01:51:19 +07:00
skeleton_2d.h Style: Apply clang-format (5.0) to some missed files 2018-05-31 09:00:37 +02:00
sprite.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
sprite.h Added a function to cache texture opacity at a pixel, and modified editor to use it. 2018-08-23 22:11:10 -03:00
tile_map.cpp Fix warnings about set but unused variables [-Wunused-but-set-variable] 2018-09-27 16:25:24 +02:00
tile_map.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
visibility_notifier_2d.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
visibility_notifier_2d.h Remove the selection rect for nodes that do not require it 2018-04-03 22:04:19 +02:00
y_sort.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
y_sort.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00