aboutsummaryrefslogtreecommitdiff
path: root/src/database/database-dummy.cpp
diff options
context:
space:
mode:
authorJude Melton-Houghton <jwmhjwmh@gmail.com>2022-11-23 17:46:20 -0500
committerJude Melton-Houghton <jwmhjwmh@gmail.com>2022-11-24 17:58:25 -0500
commit8b26bab37d4cd1cbe63f665ea26edfbb5d5a72e5 (patch)
tree3bb45b08d029b92ba365569be088bceb09716924 /src/database/database-dummy.cpp
parent7c21347a40ede4427d9a9ba69c768ffb9c41d264 (diff)
downloadminetest-8b26bab37d4cd1cbe63f665ea26edfbb5d5a72e5.tar.xz
Remove unnecessary bool return types
Diffstat (limited to 'src/database/database-dummy.cpp')
-rw-r--r--src/database/database-dummy.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/database/database-dummy.cpp b/src/database/database-dummy.cpp
index 9fa325b93..19cb6e4fa 100644
--- a/src/database/database-dummy.cpp
+++ b/src/database/database-dummy.cpp
@@ -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,