virtualx-engine/core
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
..
bind SCons: Build core's thirdparty code in own environment 2018-09-28 11:40:41 +02:00
io Fix warning about functions defined but not used [-Wunused-function] 2018-09-29 22:26:12 +02:00
math SCons: Build core's thirdparty code in own environment 2018-09-28 11:40:41 +02:00
os SCons: Build core's thirdparty code in own environment 2018-09-28 11:40:41 +02:00
allocators.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
array.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
array.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
class_db.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
class_db.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
color.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
color.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
color_names.inc Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
command_queue_mt.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
command_queue_mt.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
compressed_translation.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
compressed_translation.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
core_builders.py Allow system certs file to be used by Editor. 2018-09-15 14:45:54 +02:00
core_string_names.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
core_string_names.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
cowdata.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
dictionary.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
dictionary.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
dvector.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
dvector.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
engine.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
engine.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
error_list.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
error_macros.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
error_macros.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
func_ref.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
func_ref.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
global_constants.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
global_constants.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
hash_map.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
hashfuncs.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
image.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
image.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
input_map.cpp Merge pull request #21954 from isaacremnant/fix_inputs 2018-09-14 18:06:11 +02:00
input_map.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
int_types.h Update copyright statements to 2018 2018-01-01 14:40:47 +01:00
list.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
make_binders.py fix windows build using python 3.7 2018-07-28 18:13:48 +02:00
map.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
message_queue.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
message_queue.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
method_bind.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
method_bind.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
method_ptrcall.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
node_path.cpp Fix warnings for comparison between signed and unsigned integers [-Wsign-compare] 2018-09-27 16:25:23 +02:00
node_path.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
oa_hash_map.h Fix warnings for comparison between signed and unsigned integers [-Wsign-compare] 2018-09-27 16:25:23 +02:00
object.cpp Fix warnings about wrong member initialization order [-Wreorder] 2018-09-28 17:30:28 +02:00
object.h -Lightmap and lightmap capture support for GLES2 2018-09-28 20:33:18 -03:00
ordered_hash_map.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
packed_data_container.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
packed_data_container.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
pair.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
path_remap.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
path_remap.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
pool_allocator.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
pool_allocator.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
print_string.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
print_string.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
project_settings.cpp Merge pull request #21982 from luzpaz/misc-typos 2018-09-13 10:59:00 +02:00
project_settings.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
ref_ptr.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
ref_ptr.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
reference.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
reference.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
register_core_types.cpp Unify StreamPeerTCP/TCP_Server with NetSocket API 2018-09-12 15:56:20 +02:00
register_core_types.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
resource.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
resource.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
rid.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
rid.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
ring_buffer.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
safe_refcount.cpp reduce clang warning spam 2018-07-24 12:13:05 +02:00
safe_refcount.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
script_debugger_local.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
script_debugger_local.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
script_debugger_remote.cpp Fix warning about functions defined but not used [-Wunused-function] 2018-09-29 22:26:12 +02:00
script_debugger_remote.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
script_language.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
script_language.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
SCsub SCons: Build thirdparty code in own env, disable warnings 2018-09-28 14:07:39 +02:00
self_list.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
set.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
simple_type.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
sort.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
string_buffer.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
string_builder.cpp fixed crash with StringBuilder 2018-01-20 15:26:58 +01:00
string_builder.h Fix several in-class initialization clang warning 2018-03-22 00:17:18 -03:00
string_db.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
string_db.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
translation.cpp Fallback to "en" when invalid locale is requested 2018-09-23 13:58:01 +02:00
translation.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
type_info.h State machine animation node 2018-06-25 16:22:41 -03:00
typedefs.h Fix warnings for operator precedence disambiguation [-Wparentheses] 2018-09-27 10:29:48 +02:00
ucaps.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
undo_redo.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
undo_redo.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
ustring.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
ustring.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
variant.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
variant.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
variant_call.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
variant_construct_string.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
variant_op.cpp Color: Fix rounding error converting from float to 8-bit 2018-09-18 17:11:15 +02:00
variant_parser.cpp Merge pull request #21982 from luzpaz/misc-typos 2018-09-13 10:59:00 +02:00
variant_parser.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
vector.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
version.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
vmap.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
vset.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00