summaryrefslogtreecommitdiff
path: root/src/mods.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mods.cpp')
-rw-r--r--src/mods.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/mods.cpp b/src/mods.cpp
index a555a5b13..7e2d83944 100644
--- a/src/mods.cpp
+++ b/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)
{