mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Style: Cleanup single-line blocks, semicolons, dead code
Remove currently unused implementation of TextureBasisU, could be re-added later on if needed and ported.
This commit is contained in:
parent
f5b9cbaff6
commit
b8b4580448
137 changed files with 847 additions and 1269 deletions
|
@ -77,18 +77,21 @@ NetSocketAndroid::~NetSocketAndroid() {
|
|||
|
||||
void NetSocketAndroid::close() {
|
||||
NetSocketPosix::close();
|
||||
if (wants_broadcast)
|
||||
if (wants_broadcast) {
|
||||
multicast_lock_release();
|
||||
if (multicast_groups)
|
||||
}
|
||||
if (multicast_groups) {
|
||||
multicast_lock_release();
|
||||
}
|
||||
wants_broadcast = false;
|
||||
multicast_groups = 0;
|
||||
}
|
||||
|
||||
Error NetSocketAndroid::set_broadcasting_enabled(bool p_enabled) {
|
||||
Error err = NetSocketPosix::set_broadcasting_enabled(p_enabled);
|
||||
if (err != OK)
|
||||
if (err != OK) {
|
||||
return err;
|
||||
}
|
||||
|
||||
if (p_enabled != wants_broadcast) {
|
||||
if (p_enabled) {
|
||||
|
@ -105,11 +108,13 @@ Error NetSocketAndroid::set_broadcasting_enabled(bool p_enabled) {
|
|||
|
||||
Error NetSocketAndroid::join_multicast_group(const IPAddress &p_multi_address, String p_if_name) {
|
||||
Error err = NetSocketPosix::join_multicast_group(p_multi_address, p_if_name);
|
||||
if (err != OK)
|
||||
if (err != OK) {
|
||||
return err;
|
||||
}
|
||||
|
||||
if (!multicast_groups)
|
||||
if (!multicast_groups) {
|
||||
multicast_lock_acquire();
|
||||
}
|
||||
multicast_groups++;
|
||||
|
||||
return OK;
|
||||
|
@ -117,14 +122,16 @@ Error NetSocketAndroid::join_multicast_group(const IPAddress &p_multi_address, S
|
|||
|
||||
Error NetSocketAndroid::leave_multicast_group(const IPAddress &p_multi_address, String p_if_name) {
|
||||
Error err = NetSocketPosix::leave_multicast_group(p_multi_address, p_if_name);
|
||||
if (err != OK)
|
||||
if (err != OK) {
|
||||
return err;
|
||||
}
|
||||
|
||||
ERR_FAIL_COND_V(multicast_groups == 0, ERR_BUG);
|
||||
|
||||
multicast_groups--;
|
||||
if (!multicast_groups)
|
||||
if (!multicast_groups) {
|
||||
multicast_lock_release();
|
||||
}
|
||||
|
||||
return OK;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue