Remove the unnecessary function modifiers

This commit is contained in:
kabachuha 2020-09-27 18:44:10 +03:00 committed by Iris Morelle
parent 6c055a96dc
commit 6df3f920da
3 changed files with 4 additions and 4 deletions

View File

@ -283,7 +283,7 @@ bool addons_client::download_addon(config& archive_cfg, const std::string& id, c
return !this->update_last_error(archive_cfg);
}
static inline std::string write_info_contents(const addon_info& info)
static std::string write_info_contents(const addon_info& info)
{
LOG_ADDONS << "generating version info for add-on '" << info.id << "'\n";

View File

@ -307,12 +307,12 @@ std::string unencode_binary(const std::string& str)
return res;
}
static const std::string file_hash_raw(const config& file)
static std::string file_hash_raw(const config& file)
{
return utils::md5(file["contents"].str()).base64_digest();
}
const std::string file_hash(const config& file)
std::string file_hash(const config& file)
{
std::string hash = file["hash"].str();
if(hash.empty()) {

View File

@ -97,7 +97,7 @@ std::string encode_binary(const std::string& str);
std::string unencode_binary(const std::string& str);
bool needs_escaping(char c);
const std::string file_hash(const config& file);
std::string file_hash(const config& file);
bool comp_file_hash(const config& file_a, const config& file_b);
void write_hashlist(config& hashlist, const config& data);
bool contains_hashlist(const config& from, const config& to);