Remove unused constant in FSData Xcode surprisingly didn't complain about yet and ditch BOOST_FOREACH

master
Ansariel 2018-12-04 00:44:41 +01:00
parent 20494c8ee9
commit c8718dfa3f
1 changed files with 2 additions and 4 deletions

View File

@ -38,7 +38,6 @@
/* boost: will not compile unless equivalent is undef'd, beware. */
#include "fix_macros.h"
#include <boost/filesystem.hpp>
#include <boost/foreach.hpp>
#include "llappviewer.h"
#include "llagent.h"
@ -64,7 +63,6 @@
const std::string LEGACY_CLIENT_LIST_URL = "http://phoenixviewer.com/app/client_tags/client_list_v2.xml";
const LLUUID MAGIC_ID("3c115e51-04f4-523c-9fa6-98aff1034730");
const F32 HTTP_TIMEOUT = 30.f;
#if LL_DARWIN
size_t strnlen(const char *s, size_t n)
@ -341,8 +339,8 @@ void FSData::startDownload()
}
#if OPENSIM
std::string filenames[] = {"scriptlibrary_ossl.xml", "scriptlibrary_aa.xml"};
BOOST_FOREACH(std::string script_name, filenames)
std::string filenames[] = { "scriptlibrary_ossl.xml", "scriptlibrary_aa.xml" };
for (auto const& script_name : filenames)
{
std::string filename = gDirUtilp->getExpandedFilename(LL_PATH_USER_SETTINGS, script_name);
time_t last_modified = 0;