1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 16:45:20 +02:00

Remove unnecessary bool return types

This commit is contained in:
Jude Melton-Houghton
2022-11-23 17:46:20 -05:00
parent 7c21347a40
commit 8b26bab37d
9 changed files with 20 additions and 34 deletions

View File

@@ -81,7 +81,7 @@ void Database_Dummy::listPlayers(std::vector<std::string> &res)
}
}
bool Database_Dummy::getModEntries(const std::string &modname, StringMap *storage)
void Database_Dummy::getModEntries(const std::string &modname, StringMap *storage)
{
const auto mod_pair = m_mod_storage_database.find(modname);
if (mod_pair != m_mod_storage_database.cend()) {
@@ -89,10 +89,9 @@ bool Database_Dummy::getModEntries(const std::string &modname, StringMap *storag
(*storage)[pair.first] = pair.second;
}
}
return true;
}
bool Database_Dummy::getModKeys(const std::string &modname, std::vector<std::string> *storage)
void Database_Dummy::getModKeys(const std::string &modname, std::vector<std::string> *storage)
{
const auto mod_pair = m_mod_storage_database.find(modname);
if (mod_pair != m_mod_storage_database.cend()) {
@@ -100,7 +99,6 @@ bool Database_Dummy::getModKeys(const std::string &modname, std::vector<std::str
for (const auto &pair : mod_pair->second)
storage->push_back(pair.first);
}
return true;
}
bool Database_Dummy::getModEntry(const std::string &modname,