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:
19
src/mods.cpp
19
src/mods.cpp
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user