godot/editor/plugins
Rémi Verschelde 62ecb44035 Fix warning about functions defined but not used [-Wunused-function]
Fixes the following GCC 5 warnings:
```
core/io/zip_io.h:128:26: warning: 'zlib_filefunc_def zipio_create_io_from_file(FileAccess**)' defined but not used [-Wunused-function]
core/script_debugger_remote.cpp:110:17: warning: 'ObjectID safe_get_instance_id(const Variant&)' defined but not used [-Wunused-function]
drivers/unix/socket_helpers.h:103:12: warning: 'int _socket_create(IP::Type&, int, int)' defined but not used [-Wunused-function]
drivers/unix/socket_helpers.h:45:15: warning: 'size_t _set_sockaddr(sockaddr_storage*, const IP_Address&, int, IP::Type)' defined but not used [-Wunused-function]
drivers/unix/socket_helpers.h:76:15: warning: 'size_t _set_listen_sockaddr(sockaddr_storage*, int, IP::Type, IP_Address)' defined but not used [-Wunused-function]
editor/editor_fonts.cpp:40:24: warning: 'Ref<BitmapFont> make_font(int, int, int, int, const int*, const Ref<Texture>&)' defined but not used [-Wunused-function]
editor/editor_themes.cpp:85:26: warning: 'Ref<StyleBoxFlat> change_border_color(Ref<StyleBoxFlat>, Color)' defined but not used [-Wunused-function]
editor/import/editor_import_collada.cpp:493:13: warning: 'void _generate_normals(const PoolVector<int>&, const PoolVector<Vector3>&, PoolVector<Vector3>&)' defined but not used [-Wunused-function]
editor/import/editor_import_collada.cpp:524:13: warning: 'void _generate_tangents_and_binormals(const PoolVector<int>&, const PoolVector<Vector3>&, const PoolVector<Vector3>&, const PoolVector<Vector3>&, PoolVector<float>&)' defined but not used [-Wunused-function]
editor/pvrtc_compress.cpp:118:13: warning: 'void _compress_etc(Image*)' defined but not used [-Wunused-function]
modules/etc/image_etc.cpp:89:13: warning: 'void _decompress_etc1(Image*)' defined but not used [-Wunused-function]
modules/etc/image_etc.cpp:93:13: warning: 'void _decompress_etc2(Image*)' defined but not used [-Wunused-function]
modules/gdscript/editor/gdscript_highlighter.cpp:46:13: warning: 'bool _is_whitespace(CharType)' defined but not used [-Wunused-function]
scene/2d/cpu_particles_2d.cpp:510:14: warning: 'float rand_from_seed_m1_p1(uint32_t&)' defined but not used [-Wunused-function]
scene/3d/cpu_particles.cpp:474:14: warning: 'float rand_from_seed_m1_p1(uint32_t&)' defined but not used [-Wunused-function]
scene/resources/default_theme/default_theme.cpp:123:20: warning: 'Ref<Shader> make_shader(const char*, const char*, const char*)' defined but not used [-Wunused-function]
scene/resources/default_theme/default_theme.cpp:130:24: warning: 'Ref<BitmapFont> make_font(int, int, int, int, const int*, const Ref<Texture>&)' defined but not used [-Wunused-function]
```

Had to split `core/io/zip_io.h` into header and .cpp file without 'static' keyword.

Not fixed yet (static definition in header used in some files but not all):
```
modules/websocket/lws_helper.h:111:13: warning: 'void _lws_make_protocols(void*, int (*)(lws*, lws_callback_reasons, void*, void*, size_t), PoolVector<String>, _LWSRef**)' defined but not used [-Wunused-function]
```

Also fixed a couple other warnings missed in previous commits.
2018-09-29 22:26:12 +02:00
..
abstract_polygon_2d_editor.cpp Merge pull request #22225 from groud/fix_draw_on_viewport 2018-09-20 21:45:16 +02:00
abstract_polygon_2d_editor.h Fixes drawing of the 2D plugins on the 3D view 2018-09-18 20:00:07 +02:00
animation_blend_space_1d_editor.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
animation_blend_space_1d_editor.h Add missing copyright headers 2018-08-29 22:41:17 +02:00
animation_blend_space_2d_editor.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
animation_blend_space_2d_editor.h Add missing copyright headers 2018-08-29 22:41:17 +02:00
animation_blend_tree_editor_plugin.cpp Fix warnings about unused variables [-Wunused-variable] 2018-09-27 16:25:24 +02:00
animation_blend_tree_editor_plugin.h Fix warnings about unused variables [-Wunused-variable] 2018-09-27 16:25:24 +02:00
animation_player_editor_plugin.cpp Fixes drawing of the 2D plugins on the 3D view 2018-09-18 20:00:07 +02:00
animation_player_editor_plugin.h Fixes drawing of the 2D plugins on the 3D view 2018-09-18 20:00:07 +02:00
animation_state_machine_editor.cpp Merge pull request #21982 from luzpaz/misc-typos 2018-09-13 10:59:00 +02:00
animation_state_machine_editor.h Add missing copyright headers 2018-08-29 22:41:17 +02:00
animation_tree_editor_plugin.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
animation_tree_editor_plugin.h Add missing copyright headers 2018-08-29 22:41:17 +02:00
animation_tree_player_editor_plugin.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
animation_tree_player_editor_plugin.h Massive rewrite to AnimationTree. Many APIs changed in order to: 2018-08-20 13:39:16 -03:00
asset_library_editor_plugin.cpp Fix occasional crash when downloading assets from the Asset Library 2018-08-20 20:21:56 +02:00
asset_library_editor_plugin.h Fix Coverity reports of uninitialized scalar variable 2018-04-19 15:20:45 +02:00
audio_stream_editor_plugin.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
audio_stream_editor_plugin.h Add audio stream preview to Inspector dock 2018-07-17 22:11:35 +09:00
baked_lightmap_editor_plugin.cpp Fix warnings about unhandled enum value in switch [-Wswitch] 2018-09-27 18:34:30 +02:00
baked_lightmap_editor_plugin.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
camera_editor_plugin.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
camera_editor_plugin.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
canvas_item_editor_plugin.cpp Place the ruler text vertically 2018-09-27 16:50:40 +02:00
canvas_item_editor_plugin.h Add both X and Y scale in the scale editor 2018-09-25 09:50:25 +02:00
collision_polygon_2d_editor_plugin.cpp -Ability to open resources in the same window 2018-05-17 18:03:05 -03:00
collision_polygon_2d_editor_plugin.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
collision_polygon_editor_plugin.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
collision_polygon_editor_plugin.h Fix how snapping is applied to 3D polygon editing, make it more friendly. 2018-04-28 11:22:22 -03:00
collision_shape_2d_editor_plugin.cpp Fix warnings about set but unused variables [-Wunused-but-set-variable] 2018-09-27 16:25:24 +02:00
collision_shape_2d_editor_plugin.h Fixes drawing of the 2D plugins on the 3D view 2018-09-18 20:00:07 +02:00
cpu_particles_editor_plugin.cpp Move ParticlesMaterial code to its own resource file 2018-09-04 11:32:56 +02:00
cpu_particles_editor_plugin.h Add missing copyright headers 2018-08-29 22:41:17 +02:00
curve_editor_plugin.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
curve_editor_plugin.h -Ability to open resources in the same window 2018-05-17 18:03:05 -03:00
editor_preview_plugins.cpp Add thumnails to the tree view 2018-09-14 10:14:33 +02:00
editor_preview_plugins.h Add thumnails to the tree view 2018-09-14 10:14:33 +02:00
gi_probe_editor_plugin.cpp -Remove color operator clamping, which is unnecesary. Fixes #15184, fixes #14686. 2018-01-12 00:08:32 -03:00
gi_probe_editor_plugin.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
gradient_editor_plugin.cpp -Ability to open resources in the same window 2018-05-17 18:03:05 -03:00
gradient_editor_plugin.h -Ability to open resources in the same window 2018-05-17 18:03:05 -03:00
item_list_editor_plugin.cpp Refactor editor icon retrieval 2018-09-14 09:27:56 -05:00
item_list_editor_plugin.h Replace last occurrences of PropertyEditor by EditorInspector 2018-09-11 16:09:19 +02:00
light_occluder_2d_editor_plugin.cpp Fixes drawing of the 2D plugins on the 3D view 2018-09-18 20:00:07 +02:00
light_occluder_2d_editor_plugin.h Fixes drawing of the 2D plugins on the 3D view 2018-09-18 20:00:07 +02:00
line_2d_editor_plugin.cpp -Ability to open resources in the same window 2018-05-17 18:03:05 -03:00
line_2d_editor_plugin.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
material_editor_plugin.cpp Move ParticlesMaterial code to its own resource file 2018-09-04 11:32:56 +02:00
material_editor_plugin.h Move ParticlesMaterial code to its own resource file 2018-09-04 11:32:56 +02:00
mesh_editor_plugin.cpp Fix warnings about set but unused variables [-Wunused-but-set-variable] 2018-09-27 16:25:24 +02:00
mesh_editor_plugin.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
mesh_instance_editor_plugin.cpp Change ".." punctuation for "..." in editor strings (#16507) 2018-04-22 19:36:01 +02:00
mesh_instance_editor_plugin.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
mesh_library_editor_plugin.cpp Make some debug prints verbose-only, remove others 2018-08-24 14:59:01 +02:00
mesh_library_editor_plugin.h Rename instances of the word "theme" to "mesh_library" in GridMap and MeshLibrary editors 2018-08-22 16:52:38 -03:00
multimesh_editor_plugin.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
multimesh_editor_plugin.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
navigation_polygon_editor_plugin.cpp -Ability to open resources in the same window 2018-05-17 18:03:05 -03:00
navigation_polygon_editor_plugin.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
particles_2d_editor_plugin.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
particles_2d_editor_plugin.h Move ParticlesMaterial code to its own resource file 2018-09-04 11:32:56 +02:00
particles_editor_plugin.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
particles_editor_plugin.h Move ParticlesMaterial code to its own resource file 2018-09-04 11:32:56 +02:00
path_2d_editor_plugin.cpp Fixes drawing of the 2D plugins on the 3D view 2018-09-18 20:00:07 +02:00
path_2d_editor_plugin.h Fixes drawing of the 2D plugins on the 3D view 2018-09-18 20:00:07 +02:00
path_editor_plugin.cpp Merge pull request #21707 from JFonS/fix_instanced_selection 2018-09-05 18:11:56 +02:00
path_editor_plugin.h Fix regression #21262 in Path Gizmo 2018-08-30 14:24:24 +02:00
physical_bone_plugin.cpp Correctly freed PhysicalBoneEditor 2018-09-22 11:27:30 +02:00
physical_bone_plugin.h Correctly freed PhysicalBoneEditor 2018-09-22 11:27:30 +02:00
polygon_2d_editor_plugin.cpp Fix warnings about unhandled enum value in switch [-Wswitch] 2018-09-27 18:34:30 +02:00
polygon_2d_editor_plugin.h Skeletal deform working 2018-05-04 11:54:21 -03:00
resource_preloader_editor_plugin.cpp Refactor editor icon retrieval 2018-09-14 09:27:56 -05:00
resource_preloader_editor_plugin.h Display path to preloaded res + button to open it 2018-01-15 07:49:29 +01:00
root_motion_editor_plugin.cpp Refactor editor icon retrieval 2018-09-14 09:27:56 -05:00
root_motion_editor_plugin.h Add missing copyright headers 2018-08-29 22:41:17 +02:00
script_editor_plugin.cpp Tweak some editor texts' capitalization, use "Go to" instead of "Goto" 2018-09-25 22:51:13 +02:00
script_editor_plugin.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
script_text_editor.cpp Fix warnings about unused variables [-Wunused-variable] 2018-09-27 16:25:24 +02:00
script_text_editor.h Added system for GDScript warnings 2018-08-10 16:00:47 -03:00
SCsub SCons: Build thirdparty code in own env, disable warnings 2018-09-28 14:07:39 +02:00
shader_editor_plugin.cpp Fix warning about functions defined but not used [-Wunused-function] 2018-09-29 22:26:12 +02:00
shader_editor_plugin.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
skeleton_2d_editor_plugin.cpp Add missing copyright headers 2018-05-16 14:50:44 -03:00
skeleton_2d_editor_plugin.h Add missing copyright headers 2018-05-16 14:50:44 -03:00
skeleton_editor_plugin.cpp Fix various warnings: [-Waddress], [-Wpointer-arith], [-Wwrite-strings], [-Wreturn-local-addr] and more 2018-09-27 16:33:52 +02:00
skeleton_editor_plugin.h Add missing copyright headers 2018-08-29 22:41:17 +02:00
skeleton_ik_editor_plugin.cpp Add missing copyright headers 2018-08-29 22:41:17 +02:00
skeleton_ik_editor_plugin.h Add missing copyright headers 2018-08-29 22:41:17 +02:00
spatial_editor_plugin.cpp Fix warnings about unhandled enum value in switch [-Wswitch] 2018-09-27 18:34:30 +02:00
spatial_editor_plugin.h Fix warnings on non-static data member initializers (C++11 feature) 2018-09-27 10:29:48 +02:00
sprite_editor_plugin.cpp Fix warnings for comparison between signed and unsigned integers [-Wsign-compare] 2018-09-27 16:25:23 +02:00
sprite_editor_plugin.h Add missing copyright headers 2018-05-16 14:50:44 -03:00
sprite_frames_editor_plugin.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
sprite_frames_editor_plugin.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
style_box_editor_plugin.cpp -Ability to open resources in the same window 2018-05-17 18:03:05 -03:00
style_box_editor_plugin.h -Ability to open resources in the same window 2018-05-17 18:03:05 -03:00
text_editor.cpp Fixed syntax highlighting setting not being saved 2018-09-20 11:31:53 +02:00
text_editor.h Allow opening and editing of any utf_8 file in script editor 2018-07-22 11:55:56 +01:00
texture_editor_plugin.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
texture_editor_plugin.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
texture_region_editor_plugin.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
texture_region_editor_plugin.h Texture Region: Cache auto-slice information into the texture. Fixes #11503 2018-08-25 09:02:05 -03:00
theme_editor_plugin.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
theme_editor_plugin.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
tile_map_editor_plugin.cpp Fixes drawing of the 2D plugins on the 3D view 2018-09-18 20:00:07 +02:00
tile_map_editor_plugin.h Fixes drawing of the 2D plugins on the 3D view 2018-09-18 20:00:07 +02:00
tile_set_editor_plugin.cpp Fix warnings about unhandled enum value in switch [-Wswitch] 2018-09-27 18:34:30 +02:00
tile_set_editor_plugin.h Changes to the TileSet and TextureRegion editors 2018-08-14 14:02:47 -03:00
visual_shader_editor_plugin.cpp Merge pull request #22239 from Chaosus/fix_vs_connection 2018-09-20 18:46:02 +02:00
visual_shader_editor_plugin.h Add missing copyright headers 2018-08-29 22:41:17 +02:00