1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-02 16:38:41 +00: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

@ -866,7 +866,7 @@ void ModStorageDatabasePostgreSQL::initStatements()
"SELECT DISTINCT modname FROM mod_storage");
}
bool ModStorageDatabasePostgreSQL::getModEntries(const std::string &modname, StringMap *storage)
void ModStorageDatabasePostgreSQL::getModEntries(const std::string &modname, StringMap *storage)
{
verifyDatabase();
@ -882,11 +882,9 @@ bool ModStorageDatabasePostgreSQL::getModEntries(const std::string &modname, Str
(*storage)[pg_to_string(results, row, 0)] = pg_to_string(results, row, 1);
PQclear(results);
return true;
}
bool ModStorageDatabasePostgreSQL::getModKeys(const std::string &modname,
void ModStorageDatabasePostgreSQL::getModKeys(const std::string &modname,
std::vector<std::string> *storage)
{
verifyDatabase();
@ -904,8 +902,6 @@ bool ModStorageDatabasePostgreSQL::getModKeys(const std::string &modname,
storage->push_back(pg_to_string(results, row, 0));
PQclear(results);
return true;
}
bool ModStorageDatabasePostgreSQL::getModEntry(const std::string &modname,