diff options
| author | Rémi Verschelde | 2017-08-27 21:07:15 +0200 |
|---|---|---|
| committer | Rémi Verschelde | 2017-08-27 22:13:45 +0200 |
| commit | 7ad14e7a3e6f87ddc450f7e34621eb5200808451 (patch) | |
| tree | 8804d0dd24cc126087462edfbbbf73ed61b56b0e /core/message_queue.cpp | |
| parent | 37da8155a4500a9386027b4d791a86186bc7ab4a (diff) | |
| download | godot-7ad14e7a3e6f87ddc450f7e34621eb5200808451.tar.gz godot-7ad14e7a3e6f87ddc450f7e34621eb5200808451.tar.zst godot-7ad14e7a3e6f87ddc450f7e34621eb5200808451.zip | |
Diffstat (limited to 'core/message_queue.cpp')
| -rw-r--r-- | core/message_queue.cpp | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/core/message_queue.cpp b/core/message_queue.cpp index 14b3ba8af..040fb6980 100644 --- a/core/message_queue.cpp +++ b/core/message_queue.cpp @@ -240,47 +240,6 @@ void MessageQueue::statistics() { } } -bool MessageQueue::print() { -#if 0 - uint32_t read_pos=0; - while (read_pos < buffer_end ) { - Message *message = (Message*)&buffer[ read_pos ]; - - Object *target = ObjectDB::get_instance(message->instance_ID); - String cname; - String cfunc; - - if (target==NULL) { - //object was deleted - //WARN_PRINT("Object was deleted while awaiting a callback") - //should it print a warning? - } else if (message->notification>=0) { - - // messages don't expect a return value - cfunc="notification # "+itos(message->notification); - cname=target->get_type(); - - } else if (!message->target.empty()) { - - cfunc="property: "+message->target; - cname=target->get_type(); - - - } else if (message->target) { - - cfunc=String(message->target)+"()"; - cname=target->get_type(); - } - - - read_pos+=sizeof(Message); - if (message->type!=TYPE_NOTIFICATION) - read_pos+=sizeof(Variant)*message->args; - } -#endif - return false; -} - int MessageQueue::get_max_buffer_usage() const { return buffer_max_used; |
