[Cleanup] Remove DBInitVars(), HandleMysqlError(), and IsChatChannelInDB() in ucs/database.h (#3113)

# Notes
- These are unused.
This commit is contained in:
Alex King
2023-03-17 19:20:41 -04:00
committed by GitHub
parent 0caee9026a
commit 97e4547192
2 changed files with 0 additions and 19 deletions
-12
View File
@@ -283,18 +283,6 @@ void UCSDatabase::LoadFilteredNamesFromDB()
LogInfo("Loaded [{}] filtered channel name(s)", names.size());
}
bool UCSDatabase::IsChatChannelInDB(const std::string& channel_name)
{
auto r = ChatchannelsRepository::Count(
*this,
fmt::format(
"name = {}", Strings::Escape(channel_name)
)
);
return r > 0;
}
void UCSDatabase::SaveChatChannel(
const std::string& channel_name,
const std::string& channel_owner,