diff options
author | Rafał Mikrut <mikrutrafal54@gmail.com> | 2019-12-10 05:13:02 +0100 |
---|---|---|
committer | Rafał Mikrut <mikrutrafal54@gmail.com> | 2019-12-10 05:13:02 +0100 |
commit | ed1c4bc77db88fa0f8f599ca2d3c4b533a94a654 (patch) | |
tree | 45e5f3b02b6f9c62116ba7fb513c87fa1f26a001 /core/message_queue.cpp | |
parent | 6f38aeef5255d1fdeb99d727a0f67b9be6ccdf36 (diff) | |
download | redot-engine-ed1c4bc77db88fa0f8f599ca2d3c4b533a94a654.tar.gz |
Removed unused variables, add some constants numbers
Diffstat (limited to 'core/message_queue.cpp')
-rw-r--r-- | core/message_queue.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/core/message_queue.cpp b/core/message_queue.cpp index a76b5167b6..a254da89c6 100644 --- a/core/message_queue.cpp +++ b/core/message_queue.cpp @@ -129,9 +129,6 @@ Error MessageQueue::push_notification(ObjectID p_id, int p_notification) { uint8_t room_needed = sizeof(Message); if ((buffer_end + room_needed) >= buffer_size) { - String type; - if (ObjectDB::get_instance(p_id)) - type = ObjectDB::get_instance(p_id)->get_class(); print_line("Failed notification: " + itos(p_notification) + " target ID: " + itos(p_id)); statistics(); ERR_FAIL_V_MSG(ERR_OUT_OF_MEMORY, "Message queue out of memory. Try increasing 'message_queue_size_kb' in project settings."); |