1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-14 00:55:20 +02:00

Remove remaining modstore code (#6120)

This commit is contained in:
Elijah Duffy
2017-07-14 11:37:58 -07:00
committed by Loïc Blot
parent 32b68de65a
commit dc3ca09e0e
14 changed files with 1 additions and 1241 deletions

View File

@@ -365,25 +365,6 @@ ClientModConfiguration::ClientModConfiguration(const std::string &path):
}
#endif
#if USE_CURL
Json::Value getModstoreUrl(const std::string &url)
{
std::vector<std::string> extra_headers;
bool special_http_header = true;
try {
special_http_header = g_settings->getBool("modstore_disable_special_http_header");
} catch (SettingNotFoundException) {}
if (special_http_header) {
extra_headers.push_back("Accept: application/vnd.minetest.mmdb-v1+json");
}
return fetchJsonValue(url, special_http_header ? &extra_headers : NULL);
}
#endif
ModMetadata::ModMetadata(const std::string &mod_name):
m_mod_name(mod_name)
{