godot/core/io
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
..
compression.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
compression.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
config_file.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
config_file.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
file_access_buffered_fa.h Revert "added get_creation_time function for gdscript" 2018-08-10 13:29:49 -03:00
file_access_buffered.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
file_access_buffered.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
file_access_compressed.cpp Fix FileAccessCompressed::get_8 returning 0 for the last byte of a file 2018-09-13 19:10:35 -04:00
file_access_compressed.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
file_access_encrypted.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
file_access_encrypted.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
file_access_memory.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
file_access_memory.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
file_access_network.cpp Unify StreamPeerTCP/TCP_Server with NetSocket API 2018-09-12 15:56:20 +02:00
file_access_network.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
file_access_pack.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
file_access_pack.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
file_access_zip.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
file_access_zip.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
http_client.cpp Fix warnings about unhandled enum value in switch [-Wswitch] 2018-09-27 18:34:30 +02:00
http_client.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
image_loader.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
image_loader.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
ip_address.cpp Fix typos with codespell 2018-02-21 19:46:06 +01:00
ip_address.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
ip.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
ip.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
json.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
json.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
logger.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
logger.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
marshalls.cpp Fix warnings about unhandled enum value in switch [-Wswitch] 2018-09-27 18:34:30 +02:00
marshalls.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
multiplayer_api.cpp Better MultiplayerAPI error logs. 2018-09-25 20:13:45 +02:00
multiplayer_api.h Clearly deprecate sync too in favor of remotesync. 2018-09-15 00:06:03 +02:00
net_socket.cpp New NetSocket interface, BSD/Win implementation 2018-09-12 15:46:37 +02:00
net_socket.h New NetSocket interface, BSD/Win implementation 2018-09-12 15:46:37 +02:00
networked_multiplayer_peer.cpp Bind many more properties to scripts 2018-01-12 00:58:14 +02:00
networked_multiplayer_peer.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
packet_peer_udp.cpp Unify PacketPeerUDP using NetSocket 2018-09-12 15:56:16 +02:00
packet_peer_udp.h Unify PacketPeerUDP using NetSocket 2018-09-12 15:56:16 +02:00
packet_peer.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
packet_peer.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
pck_packer.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
pck_packer.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
resource_format_binary.cpp Fix warnings for operator precedence disambiguation [-Wparentheses] 2018-09-27 10:29:48 +02:00
resource_format_binary.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
resource_import.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
resource_import.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
resource_loader.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
resource_loader.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
resource_saver.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
resource_saver.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
SCsub SCons: Build core's thirdparty code in own environment 2018-09-28 11:40:41 +02:00
stream_peer_ssl.cpp Add checks for clean disconnect in HTTP/TCP/SSL. 2018-09-21 14:34:57 +02:00
stream_peer_ssl.h Allow system certs file to be used by Editor. 2018-09-15 14:45:54 +02:00
stream_peer_tcp.cpp Add checks for clean disconnect in HTTP/TCP/SSL. 2018-09-21 14:34:57 +02:00
stream_peer_tcp.h Unify StreamPeerTCP/TCP_Server with NetSocket API 2018-09-12 15:56:20 +02:00
stream_peer.cpp StreamPeer get[_utf8]_string with negative length. 2018-09-22 13:35:41 +02:00
stream_peer.h StreamPeer get[_utf8]_string with negative length. 2018-09-22 13:35:41 +02:00
tcp_server.cpp Unify StreamPeerTCP/TCP_Server with NetSocket API 2018-09-12 15:56:20 +02:00
tcp_server.h Unify StreamPeerTCP/TCP_Server with NetSocket API 2018-09-12 15:56:20 +02:00
translation_loader_po.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
translation_loader_po.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
xml_parser.cpp Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
xml_parser.h Make core/ includes absolute, remove subfolders from include path 2018-09-12 09:52:22 +02:00
zip_io.cpp Fix warning about functions defined but not used [-Wunused-function] 2018-09-29 22:26:12 +02:00
zip_io.h Fix warning about functions defined but not used [-Wunused-function] 2018-09-29 22:26:12 +02:00