Remove redundant "== true" code

If it can be compared to a boolean, it can be evaluated as one in-place.
This commit is contained in:
Aaron Franke
2018-10-03 13:40:37 -04:00
parent ffe94ef4e2
commit 37386f112b
19 changed files with 27 additions and 27 deletions
+1 -1
View File
@@ -2487,7 +2487,7 @@ _Thread::~_Thread() {
if (active) {
ERR_EXPLAIN("Reference to a Thread object object was lost while the thread is still running...");
}
ERR_FAIL_COND(active == true);
ERR_FAIL_COND(active);
}
/////////////////////////////////////
+1 -1
View File
@@ -149,7 +149,7 @@ class PoolVector {
}
}
if (old_alloc->refcount.unref() == true) {
if (old_alloc->refcount.unref()) {
//this should never happen but..
#ifdef DEBUG_ENABLED
+1 -1
View File
@@ -578,7 +578,7 @@ void MultiplayerAPI::_send_rpc(Node *p_from, int p_to, bool p_unreliable, bool p
network_peer->set_target_peer(E->get()); // To this one specifically.
if (F->get() == true) {
if (F->get()) {
// This one confirmed path, so use id.
encode_uint32(psc->id, &(packet_cache.write[1]));
network_peer->put_packet(packet_cache.ptr(), ofs);
+1 -1
View File
@@ -858,7 +858,7 @@ bool Variant::is_one() const {
// atomic types
case BOOL: {
return _data._bool == true;
return _data._bool;
} break;
case INT: {