mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Removed unnecessary assignments
This commit is contained in:
parent
4717d37bfa
commit
738d2ab969
37 changed files with 65 additions and 128 deletions
|
@ -195,7 +195,7 @@ void ExportTemplateManager::_install_from_file(const String &p_file) {
|
|||
data.resize(info.uncompressed_size);
|
||||
|
||||
//read
|
||||
ret = unzOpenCurrentFile(pkg);
|
||||
unzOpenCurrentFile(pkg);
|
||||
ret = unzReadCurrentFile(pkg, data.ptr(), data.size());
|
||||
unzCloseCurrentFile(pkg);
|
||||
|
||||
|
@ -257,7 +257,7 @@ void ExportTemplateManager::_install_from_file(const String &p_file) {
|
|||
//get filename
|
||||
unz_file_info info;
|
||||
char fname[16384];
|
||||
ret = unzGetCurrentFileInfo(pkg, &info, fname, 16384, NULL, 0, NULL, 0);
|
||||
unzGetCurrentFileInfo(pkg, &info, fname, 16384, NULL, 0, NULL, 0);
|
||||
|
||||
String file = fname;
|
||||
|
||||
|
@ -265,8 +265,8 @@ void ExportTemplateManager::_install_from_file(const String &p_file) {
|
|||
data.resize(info.uncompressed_size);
|
||||
|
||||
//read
|
||||
ret = unzOpenCurrentFile(pkg);
|
||||
ret = unzReadCurrentFile(pkg, data.ptr(), data.size());
|
||||
unzOpenCurrentFile(pkg);
|
||||
unzReadCurrentFile(pkg, data.ptr(), data.size());
|
||||
unzCloseCurrentFile(pkg);
|
||||
|
||||
print_line(fname);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue