summaryrefslogtreecommitdiff
path: root/core/message_queue.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-12-10 08:25:31 +0100
committerGitHub <noreply@github.com>2019-12-10 08:25:31 +0100
commit2845e6a21a9a1b7c8bf64dc49575213141a68832 (patch)
treeb4f82b8b4b733aa37dd877a0867a441d67a68d15 /core/message_queue.cpp
parent16fc023d4487c2a3f26b5bdd3827628de2cd0ba2 (diff)
parented1c4bc77db88fa0f8f599ca2d3c4b533a94a654 (diff)
Merge pull request #34040 from qarmin/unused_variable_more_precise_numbers
Removed unused variables, add some constants numbers
Diffstat (limited to 'core/message_queue.cpp')
-rw-r--r--core/message_queue.cpp3
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.");