diff options
author | Rider Linden <rider@lindenlab.com> | 2015-09-14 11:15:23 -0700 |
---|---|---|
committer | Rider Linden <rider@lindenlab.com> | 2015-09-14 11:15:23 -0700 |
commit | 97236a42ca08979897d5c7b0826312345754cd67 (patch) | |
tree | 55cf5e5757b23f0bc52eb4a2a7270279d6548480 /indra/newview/lltranslate.cpp | |
parent | f2da6ec2ac7299b62b3c11455356c8c2ab5f2b2b (diff) |
MAINT-5507: Remove HTTPClient and related cruft.
Diffstat (limited to 'indra/newview/lltranslate.cpp')
-rwxr-xr-x | indra/newview/lltranslate.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/indra/newview/lltranslate.cpp b/indra/newview/lltranslate.cpp index 1ca2011a70..5390573f7b 100755 --- a/indra/newview/lltranslate.cpp +++ b/indra/newview/lltranslate.cpp @@ -574,25 +574,3 @@ LLTranslationAPIHandler& LLTranslate::getHandler(EService service) return bing; } - -// static -void LLTranslate::sendRequest(const std::string& url, LLHTTPClient::ResponderPtr responder) -{ - static const float REQUEST_TIMEOUT = 5; - static LLSD sHeader; - - if (!sHeader.size()) - { - std::string user_agent = llformat("%s %d.%d.%d (%d)", - LLVersionInfo::getChannel().c_str(), - LLVersionInfo::getMajor(), - LLVersionInfo::getMinor(), - LLVersionInfo::getPatch(), - LLVersionInfo::getBuild()); - - sHeader.insert(HTTP_OUT_HEADER_ACCEPT, HTTP_CONTENT_TEXT_PLAIN); - sHeader.insert(HTTP_OUT_HEADER_USER_AGENT, user_agent); - } - - LLHTTPClient::get(url, responder, sHeader, REQUEST_TIMEOUT); -} |