summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerassetupload.cpp
diff options
context:
space:
mode:
authorCallum Prentice <callum@gmail.com>2020-10-06 17:16:53 -0700
committerCallum Prentice <callum@gmail.com>2020-10-06 17:16:53 -0700
commit3092aa8aae496803707980eb456cddbb9960ef1c (patch)
tree4edf4ba655c005bdd89c7bd18641ed15d0840b6c /indra/newview/llviewerassetupload.cpp
parent354930014bc90a9c92b33300e5ecaf7fa861fe7b (diff)
Add in the C++ filesystem based cache and clean up some indempotent functions in llfilesystem
Diffstat (limited to 'indra/newview/llviewerassetupload.cpp')
-rw-r--r--indra/newview/llviewerassetupload.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/indra/newview/llviewerassetupload.cpp b/indra/newview/llviewerassetupload.cpp
index fb3ca69d5d..67ee06e255 100644
--- a/indra/newview/llviewerassetupload.cpp
+++ b/indra/newview/llviewerassetupload.cpp
@@ -474,8 +474,6 @@ LLSD LLNewFileResourceUploadInfo::exportTempFile()
{
LLFileSystem file(getAssetId(), assetType, LLFileSystem::WRITE);
- file.setMaxSize(file_size);
-
const S32 buf_size = 65536;
U8 copy_buf[buf_size];
while ((file_size = infile.read(copy_buf, buf_size)))
@@ -568,7 +566,6 @@ LLSD LLBufferedAssetUploadInfo::prepareUpload()
LLFileSystem file(getAssetId(), getAssetType(), LLFileSystem::APPEND);
S32 size = mContents.length() + 1;
- file.setMaxSize(size);
file.write((U8*)mContents.c_str(), size);
mStoredToCache = true;