diff options
author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2020-10-26 20:01:12 +0200 |
---|---|---|
committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2020-10-26 20:01:12 +0200 |
commit | c66c426d6b5bfab3922471adf7402bee5d10f8ec (patch) | |
tree | 461abf5b7c657d1c73df530ffcaa1fd9ca46bee8 /indra/newview/llmeshrepository.cpp | |
parent | 1cdcc00319c87b9be6ed677e4b36b0b53a1acb3e (diff) |
SL-14148 remove redundant zeroing of the file
Diffstat (limited to 'indra/newview/llmeshrepository.cpp')
-rw-r--r-- | indra/newview/llmeshrepository.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/indra/newview/llmeshrepository.cpp b/indra/newview/llmeshrepository.cpp index 3183e6d8fd..bd4bebbf23 100644 --- a/indra/newview/llmeshrepository.cpp +++ b/indra/newview/llmeshrepository.cpp @@ -3247,21 +3247,6 @@ void LLMeshHeaderHandler::processData(LLCore::BufferArray * /* body */, S32 /* b ++LLMeshRepository::sCacheWrites; file.write(data, data_size); - - // zero out the rest of the file - U8 block[MESH_HEADER_SIZE]; - memset(block, 0, sizeof(block)); - - while (bytes-file.tell() > sizeof(block)) - { - file.write(block, sizeof(block)); - } - - S32 remaining = bytes-file.tell(); - if (remaining > 0) - { - file.write(block, remaining); - } } } else |