From 422fac5066b704cb2bf251000869b5b94e188c85 Mon Sep 17 00:00:00 2001 From: "Daniel J. Ramirez" Date: Sat, 18 Jun 2016 18:01:06 -0500 Subject: Removed lots of prints --- core/print_string.cpp | 3 --- drivers/unix/packet_peer_udp_posix.cpp | 1 - drivers/unix/tcp_server_posix.cpp | 9 +-------- modules/gdscript/gd_editor.cpp | 8 -------- tools/editor/editor_node.cpp | 6 ------ tools/editor/editor_settings.cpp | 5 ----- tools/editor/plugins/script_editor_plugin.cpp | 4 +--- 7 files changed, 2 insertions(+), 34 deletions(-) diff --git a/core/print_string.cpp b/core/print_string.cpp index 6e57822e94..b6154f1cf6 100644 --- a/core/print_string.cpp +++ b/core/print_string.cpp @@ -44,18 +44,15 @@ void add_print_handler(PrintHandlerList *p_handler) { void remove_print_handler(PrintHandlerList *p_handler) { - OS::get_singleton()->print("pre-removing print handler...\n"); _global_lock(); PrintHandlerList *prev = NULL; PrintHandlerList *l = print_handler_list; - OS::get_singleton()->print("removing print handler...\n"); while(l) { if (l==p_handler) { - OS::get_singleton()->print("found\n"); if (prev) prev->next=l->next; else diff --git a/drivers/unix/packet_peer_udp_posix.cpp b/drivers/unix/packet_peer_udp_posix.cpp index 754003f10d..0201a85651 100644 --- a/drivers/unix/packet_peer_udp_posix.cpp +++ b/drivers/unix/packet_peer_udp_posix.cpp @@ -124,7 +124,6 @@ Error PacketPeerUDPPosix::listen(int p_port, int p_recv_buffer_size){ close(); return ERR_UNAVAILABLE; } - printf("UDP Connection listening on port %i bufsize %i \n", p_port,p_recv_buffer_size); rb.resize(nearest_shift(p_recv_buffer_size)); return OK; } diff --git a/drivers/unix/tcp_server_posix.cpp b/drivers/unix/tcp_server_posix.cpp index 98451957fd..c67bb51334 100644 --- a/drivers/unix/tcp_server_posix.cpp +++ b/drivers/unix/tcp_server_posix.cpp @@ -67,7 +67,6 @@ void TCPServerPosix::make_default() { Error TCPServerPosix::listen(uint16_t p_port,const List *p_accepted_hosts) { - printf("********* listening on port %i\n", p_port); int sockfd; sockfd = socket(AF_INET, SOCK_STREAM, 0); ERR_FAIL_COND_V(sockfd == -1, FAILED); @@ -80,8 +79,7 @@ Error TCPServerPosix::listen(uint16_t p_port,const List *p_accepted_host int reuse=1; if(setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, (char *)&reuse, sizeof(reuse)) < 0) { - - printf("REUSEADDR failed!"); + WARN_PRINT("REUSEADDR failed!") } struct sockaddr_in my_addr; @@ -103,14 +101,11 @@ Error TCPServerPosix::listen(uint16_t p_port,const List *p_accepted_host }; if (listen_sockfd != -1) { - - printf("FAILED\n"); stop(); }; listen_sockfd = sockfd; - printf("OK! %i\n", listen_sockfd); return OK; }; @@ -129,7 +124,6 @@ bool TCPServerPosix::is_connection_available() const { ERR_FAIL_COND_V(ret < 0, FAILED); if (ret && (pfd.revents & POLLIN)) { - printf("has connection!\n"); return true; }; @@ -164,7 +158,6 @@ Ref TCPServerPosix::take_connection() { void TCPServerPosix::stop() { if (listen_sockfd != -1) { - print_line("CLOSING CONNECTION"); int ret = close(listen_sockfd); ERR_FAIL_COND(ret!=0); }; diff --git a/modules/gdscript/gd_editor.cpp b/modules/gdscript/gd_editor.cpp index d5bf6463c6..b1da7e782c 100644 --- a/modules/gdscript/gd_editor.cpp +++ b/modules/gdscript/gd_editor.cpp @@ -497,11 +497,6 @@ static Ref _get_parent_class(GDCompletionContext& context) { int base_idx = GDScriptLanguage::get_singleton()->get_global_map()[base]; native = GDScriptLanguage::get_singleton()->get_global_array()[base_idx]; - if (!native.is_valid()) { - - print_line("Global not a class: '"+base+"'"); - - } return native; } @@ -2124,10 +2119,8 @@ Error GDScriptLanguage::complete_code(const String& p_code, const String& p_base switch(p.get_completion_type()) { case GDParser::COMPLETION_NONE: { - print_line("No completion"); } break; case GDParser::COMPLETION_BUILT_IN_TYPE_CONSTANT: { - print_line("Built in type constant"); List constants; Variant::get_numeric_constants_for_type(p.get_completion_built_in_constant(),&constants); for(List::Element *E=constants.front();E;E=E->next()) { @@ -2143,7 +2136,6 @@ Error GDScriptLanguage::complete_code(const String& p_code, const String& p_base _find_identifiers(context,p.get_completion_line(),isfunction,options); } break; case GDParser::COMPLETION_PARENT_FUNCTION: { - print_line("parent function"); } break; case GDParser::COMPLETION_METHOD: diff --git a/tools/editor/editor_node.cpp b/tools/editor/editor_node.cpp index 5e946e0ecc..73af310877 100644 --- a/tools/editor/editor_node.cpp +++ b/tools/editor/editor_node.cpp @@ -1159,7 +1159,6 @@ void EditorNode::_dialog_action(String p_file) { } break; case FILE_RUN_SCRIPT: { - print_line("RUN: "+p_file); Ref