diff options
author | Jacek Antonelli | 2008-08-15 23:44:56 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:56 -0500 |
commit | c07901e29ed545bbb02e3bddf148fe1104b94e9f (patch) | |
tree | f1ada64ce834acd7d92a425efb96c4b86bcf16b1 /linden/indra/llmessage/llassetstorage.cpp | |
parent | Second Life viewer sources 1.15.0.2 (diff) | |
download | meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.zip meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.gz meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.bz2 meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.xz |
Second Life viewer sources 1.15.1.3
Diffstat (limited to 'linden/indra/llmessage/llassetstorage.cpp')
-rw-r--r-- | linden/indra/llmessage/llassetstorage.cpp | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/linden/indra/llmessage/llassetstorage.cpp b/linden/indra/llmessage/llassetstorage.cpp index 4f4fc0c..c8610a7 100644 --- a/linden/indra/llmessage/llassetstorage.cpp +++ b/linden/indra/llmessage/llassetstorage.cpp | |||
@@ -57,10 +57,6 @@ LLAssetStorage *gAssetStorage = NULL; | |||
57 | 57 | ||
58 | const LLUUID CATEGORIZE_LOST_AND_FOUND_ID("00000000-0000-0000-0000-000000000010"); | 58 | const LLUUID CATEGORIZE_LOST_AND_FOUND_ID("00000000-0000-0000-0000-000000000010"); |
59 | 59 | ||
60 | const F32 LL_ASSET_STORAGE_TIMEOUT = 300.0f; // anything that takes longer than this will abort | ||
61 | |||
62 | |||
63 | |||
64 | ///---------------------------------------------------------------------------- | 60 | ///---------------------------------------------------------------------------- |
65 | /// LLAssetInfo | 61 | /// LLAssetInfo |
66 | ///---------------------------------------------------------------------------- | 62 | ///---------------------------------------------------------------------------- |
@@ -837,43 +833,6 @@ void LLAssetStorage::downloadInvItemCompleteCallback( | |||
837 | // Store routines | 833 | // Store routines |
838 | ///////////////////////////////////////////////////////////////////////////////////////////////////////////////// | 834 | ///////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
839 | 835 | ||
840 | // virtual | ||
841 | void LLAssetStorage::cancelStoreAsset( | ||
842 | const LLUUID& uuid, | ||
843 | LLAssetType::EType atype) | ||
844 | { | ||
845 | bool do_callback = true; | ||
846 | LLAssetRequest* req = NULL; | ||
847 | |||
848 | if(mPendingUploads.size() > 0) | ||
849 | { | ||
850 | req = mPendingUploads.front(); | ||
851 | if((req->getUUID() == uuid) && (req->getType() == atype)) | ||
852 | { | ||
853 | // This is probably because the request is in progress - do | ||
854 | // not attempt to cancel. | ||
855 | do_callback = false; | ||
856 | } | ||
857 | } | ||
858 | |||
859 | if (mPendingLocalUploads.size() > 0) | ||
860 | { | ||
861 | req = mPendingLocalUploads.front(); | ||
862 | if((req->getUUID() == uuid) && (req->getType() == atype)) | ||
863 | { | ||
864 | // This is probably because the request is in progress - do | ||
865 | // not attempt to cancel. | ||
866 | do_callback = false; | ||
867 | } | ||
868 | } | ||
869 | |||
870 | if (do_callback) | ||
871 | { | ||
872 | // clear it out of the upload queue if it is there. | ||
873 | _callUploadCallbacks(uuid, atype, FALSE); | ||
874 | } | ||
875 | } | ||
876 | |||
877 | // static | 836 | // static |
878 | void LLAssetStorage::uploadCompleteCallback(const LLUUID& uuid, void *user_data, S32 result) // StoreAssetData callback (fixed) | 837 | void LLAssetStorage::uploadCompleteCallback(const LLUUID& uuid, void *user_data, S32 result) // StoreAssetData callback (fixed) |
879 | { | 838 | { |