Skip to content

Commit

Permalink
Remove the unnecessary function modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
kabachuha authored and irydacea committed Oct 15, 2020
1 parent 6c055a9 commit 6df3f92
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/addon/client.cpp
Expand Up @@ -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";

Expand Down
4 changes: 2 additions & 2 deletions src/addon/validation.cpp
Expand Up @@ -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()) {
Expand Down
2 changes: 1 addition & 1 deletion src/addon/validation.hpp
Expand Up @@ -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);
Expand Down

0 comments on commit 6df3f92

Please sign in to comment.