Fix warning: unused variable ‘len’ in release builds.

This commit is contained in:
Lirusaito
2012-12-10 13:26:48 -05:00
parent c24950b261
commit 813a4b0200

View File

@@ -74,8 +74,7 @@ static std::string getMarketplaceDomain()
// SecondLife(tm) BETA grid.
// Using the login URI is a bit of a kludge, but it's the best we've got at the moment.
domain = utf8str_tolower(getLoginUriDomain()); // <gridid>.lindenlab.com; ie, "aditi.lindenlab.com".
std::string::size_type len = domain.length();
llassert(len > 14 && domain.substr(len - 14) == ".lindenlab.com");
llassert(domain.length() > 14 && domain.substr(domain.length() - 14) == ".lindenlab.com");
if (domain == "damballah.lindenlab.com")
{
domain = "secondlife-staging.com";