diff options
author | Elijah Duffy <enduffy2014@outlook.com> | 2017-07-14 11:37:58 -0700 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-07-14 20:37:58 +0200 |
commit | dc3ca09e0e0e25f40cccae12c73830b0334ffb60 (patch) | |
tree | 25ce565ec4db341868754b004fe167c452950b50 /src/mods.cpp | |
parent | 32b68de65a303f0e063cb0d61a79ff7b4837ad7f (diff) | |
download | minetest-dc3ca09e0e0e25f40cccae12c73830b0334ffb60.tar.gz minetest-dc3ca09e0e0e25f40cccae12c73830b0334ffb60.tar.bz2 minetest-dc3ca09e0e0e25f40cccae12c73830b0334ffb60.zip |
Remove remaining modstore code (#6120)
Diffstat (limited to 'src/mods.cpp')
-rw-r--r-- | src/mods.cpp | 19 |
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) { |