diff options
author | Rick Pasetto <rick@lindenlab.com> | 2009-11-24 15:55:53 -0800 |
---|---|---|
committer | Rick Pasetto <rick@lindenlab.com> | 2009-11-24 15:55:53 -0800 |
commit | c8519c5a7b41652499ead70736f0d61470ee6ce3 (patch) | |
tree | 91cb73ee201bcab86a4526cd3176eb59addafb24 /indra | |
parent | f276b73d974a4b47d50e71922846efe9ee0b1409 (diff) |
Code review feedback:
Don't re-sort when adding to the queue: it isn't really necessary
since we sort every time we pull off the queue.
Diffstat (limited to 'indra')
-rwxr-xr-x | indra/newview/llmediadataclient.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/indra/newview/llmediadataclient.cpp b/indra/newview/llmediadataclient.cpp index 924f5a2598..3c337961e1 100755 --- a/indra/newview/llmediadataclient.cpp +++ b/indra/newview/llmediadataclient.cpp @@ -487,8 +487,6 @@ void LLMediaDataClient::enqueue(const Request *request) // Push the request on the priority queue // Sadly, we have to const-cast because items put into the queue are not const pRequestQueue->push_back(const_cast<LLMediaDataClient::Request*>(request)); - // sort the list - pRequestQueue->sort(LLMediaDataClient::compareRequests); LL_DEBUGS("LLMediaDataClient") << "Queue:" << (*pRequestQueue) << LL_ENDL; // Start the timer if not already running startQueueTimer(); |