mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-07 06:56:26 +00:00
Remove the unnecessary function modifiers
This commit is contained in:
parent
6c055a96dc
commit
6df3f920da
@ -283,7 +283,7 @@ bool addons_client::download_addon(config& archive_cfg, const std::string& id, c
|
|||||||
return !this->update_last_error(archive_cfg);
|
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";
|
LOG_ADDONS << "generating version info for add-on '" << info.id << "'\n";
|
||||||
|
|
||||||
|
@ -307,12 +307,12 @@ std::string unencode_binary(const std::string& str)
|
|||||||
return res;
|
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();
|
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();
|
std::string hash = file["hash"].str();
|
||||||
if(hash.empty()) {
|
if(hash.empty()) {
|
||||||
|
@ -97,7 +97,7 @@ std::string encode_binary(const std::string& str);
|
|||||||
std::string unencode_binary(const std::string& str);
|
std::string unencode_binary(const std::string& str);
|
||||||
bool needs_escaping(char c);
|
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);
|
bool comp_file_hash(const config& file_a, const config& file_b);
|
||||||
void write_hashlist(config& hashlist, const config& data);
|
void write_hashlist(config& hashlist, const config& data);
|
||||||
bool contains_hashlist(const config& from, const config& to);
|
bool contains_hashlist(const config& from, const config& to);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user