浏览代码

Remove some noisy debug prints

Part of #5031
Rémi Verschelde 9 年之前
父节点
当前提交
22419082d9

+ 0 - 14
core/bind/core_bind.cpp

@@ -857,7 +857,6 @@ void _OS::print_all_textures_by_size() {
 
 
 	for(List<_OSCoreBindImg>::Element *E=imgs.front();E;E=E->next()) {
 	for(List<_OSCoreBindImg>::Element *E=imgs.front();E;E=E->next()) {
 
 
-		print_line(E->get().path+" - "+String::humanize_size(E->get().vram)+"  ("+E->get().size+") - total:"+String::humanize_size(total) );
 		total-=E->get().vram;
 		total-=E->get().vram;
 	}
 	}
 }
 }
@@ -891,19 +890,6 @@ void _OS::print_resources_by_type(const Vector<String>& p_types) {
 
 
 
 
 		type_count[r->get_type()]++;
 		type_count[r->get_type()]++;
-
-		print_line(r->get_type()+": "+r->get_path());
-
-		List<String> metas;
-		r->get_meta_list(&metas);
-		for (List<String>::Element* me = metas.front(); me; me = me->next()) {
-			print_line(" "+String(me->get()) + ": " + r->get_meta(me->get()));
-		};
-	}
-
-	for(Map<String,int>::Element *E=type_count.front();E;E=E->next()) {
-
-		print_line(E->key()+" count: "+itos(E->get()));
 	}
 	}
 
 
 };
 };

+ 1 - 6
core/resource.cpp

@@ -95,10 +95,9 @@ bool ResourceImportMetadata::has_option(const String& p_key) const {
 
 
 	return options.has(p_key);
 	return options.has(p_key);
 }
 }
+
 Variant ResourceImportMetadata::get_option(const String& p_key) const {
 Variant ResourceImportMetadata::get_option(const String& p_key) const {
 
 
-	if (!options.has(p_key))
-		print_line(p_key);
 	ERR_FAIL_COND_V(!options.has(p_key),Variant());
 	ERR_FAIL_COND_V(!options.has(p_key),Variant());
 
 
 	return options[p_key];
 	return options[p_key];
@@ -487,8 +486,6 @@ void ResourceCache::dump(const char* p_file,bool p_short) {
 		if (!p_short) {
 		if (!p_short) {
 			if (f)
 			if (f)
 				f->store_line(r->get_type()+": "+r->get_path());
 				f->store_line(r->get_type()+": "+r->get_path());
-			else
-				print_line(r->get_type()+": "+r->get_path());
 		}
 		}
 	}
 	}
 
 
@@ -496,8 +493,6 @@ void ResourceCache::dump(const char* p_file,bool p_short) {
 
 
 		if (f)
 		if (f)
 			f->store_line(E->key()+" count: "+itos(E->get()));
 			f->store_line(E->key()+" count: "+itos(E->get()));
-		else
-			print_line(E->key()+" count: "+itos(E->get()));
 	}
 	}
 	if (f) {
 	if (f) {
 		f->close();
 		f->close();

+ 0 - 4
drivers/unix/os_unix.cpp

@@ -357,7 +357,6 @@ Error OS_Unix::execute(const String& p_path, const List<String>& p_arguments,boo
 
 
 	pid_t pid = fork();
 	pid_t pid = fork();
 	ERR_FAIL_COND_V(pid<0,ERR_CANT_FORK);
 	ERR_FAIL_COND_V(pid<0,ERR_CANT_FORK);
-	//print("execute: %s\n",p_path.utf8().get_data());
 
 
 
 
 	if (pid==0) {
 	if (pid==0) {
@@ -394,8 +393,6 @@ Error OS_Unix::execute(const String& p_path, const List<String>& p_arguments,boo
 		pid_t rpid = waitpid(pid,&status,0);
 		pid_t rpid = waitpid(pid,&status,0);
 		if (r_exitcode)
 		if (r_exitcode)
 			*r_exitcode=WEXITSTATUS(status);
 			*r_exitcode=WEXITSTATUS(status);
-
-		print("returned: %i, waiting for: %i\n",rpid,pid);
 	} else {
 	} else {
 
 
 		if (r_child_id)
 		if (r_child_id)
@@ -498,7 +495,6 @@ String OS_Unix::get_executable_path() const {
 	char buf[256];
 	char buf[256];
 	memset(buf,0,256);
 	memset(buf,0,256);
 	readlink("/proc/self/exe", buf, sizeof(buf));
 	readlink("/proc/self/exe", buf, sizeof(buf));
-	//print_line("Exec path is:"+String(buf));
 	String b;
 	String b;
 	b.parse_utf8(buf);
 	b.parse_utf8(buf);
 	if (b=="") {
 	if (b=="") {

+ 0 - 4
scene/gui/popup.cpp

@@ -125,8 +125,6 @@ void Popup::set_as_minsize() {
 
 
 		}
 		}
 
 
-		print_line(String(c->get_type())+": "+minsize);
-
 		total_minsize.width = MAX( total_minsize.width, minsize.width );
 		total_minsize.width = MAX( total_minsize.width, minsize.width );
 		total_minsize.height = MAX( total_minsize.height, minsize.height );
 		total_minsize.height = MAX( total_minsize.height, minsize.height );
 	}
 	}
@@ -168,8 +166,6 @@ void Popup::popup_centered_minsize(const Size2& p_minsize) {
 
 
 		}
 		}
 
 
-		print_line(String(c->get_type())+": "+minsize);
-
 		total_minsize.width = MAX( total_minsize.width, minsize.width );
 		total_minsize.width = MAX( total_minsize.width, minsize.width );
 		total_minsize.height = MAX( total_minsize.height, minsize.height );
 		total_minsize.height = MAX( total_minsize.height, minsize.height );
 	}
 	}

+ 0 - 2
tools/editor/io_plugins/editor_texture_import_plugin.cpp

@@ -147,8 +147,6 @@ void EditorImportTextureOptions::_changed() {
 
 
 void EditorImportTextureOptions::_bind_methods() {
 void EditorImportTextureOptions::_bind_methods() {
 
 
-	print_line("bind toptions");
-
 	ObjectTypeDB::bind_method("_changed",&EditorImportTextureOptions::_changed);
 	ObjectTypeDB::bind_method("_changed",&EditorImportTextureOptions::_changed);
 	ObjectTypeDB::bind_method("_changedp",&EditorImportTextureOptions::_changedp);
 	ObjectTypeDB::bind_method("_changedp",&EditorImportTextureOptions::_changedp);