diff options
author | rachytski <siarhei.rachytski@gmail.com> | 2012-05-12 20:41:59 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:38:24 +0300 |
commit | 8c79df1dfa72e14440035a1f833556cd927596f9 (patch) | |
tree | cedd2b21cb6f1b09d8989f9a14164f15d48425f6 /storage | |
parent | c43b1b1a1ad42619d50538e43a9410db5095d8e5 (diff) |
moved ParseServerList into http_request.hpp, *.cpp
Diffstat (limited to 'storage')
-rw-r--r-- | storage/storage.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/storage/storage.cpp b/storage/storage.cpp index 5d644aaac7..b418b6dd61 100644 --- a/storage/storage.cpp +++ b/storage/storage.cpp @@ -427,26 +427,6 @@ namespace storage } } - static bool ParseServerList(string const & jsonStr, vector<string> & outUrls) - { - outUrls.clear(); - try - { - my::Json root(jsonStr.c_str()); - for (size_t i = 0; i < json_array_size(root); ++i) - { - char const * url = json_string_value(json_array_get(root, i)); - if (url) - outUrls.push_back(url); - } - } - catch (std::exception const & e) - { - LOG(LERROR, ("Can't parse server list json", e.what(), jsonStr)); - } - return !outUrls.empty(); - } - void Storage::OnServerListDownloaded(HttpRequest & request) { if (m_queue.empty()) |