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:
parent
7c21347a40
commit
8b26bab37d
9 changed files with 20 additions and 34 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue