mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 21:01:29 +00:00
[Cleanup] Remove DBInitVars(), HandleMysqlError(), and IsChatChannelInDB() in ucs/database.h (#3113)
# Notes - These are unused.
This commit is contained in:
parent
0caee9026a
commit
97e4547192
@ -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,
|
||||
|
||||
@ -45,7 +45,6 @@ public:
|
||||
bool LoadChatChannels();
|
||||
void LoadReservedNamesFromDB();
|
||||
void LoadFilteredNamesFromDB();
|
||||
bool IsChatChannelInDB(const std::string& channel_name);
|
||||
bool CheckChannelNameFilter(const std::string& channel_name);
|
||||
void SaveChatChannel(const std::string& channel_name, const std::string& channel_owner, const std::string& channel_password, const uint16& min_status);
|
||||
void DeleteChatChannel(const std::string& channel_name);
|
||||
@ -62,12 +61,6 @@ public:
|
||||
void AddFriendOrIgnore(const int& char_id, const int& type, const std::string& name);
|
||||
void RemoveFriendOrIgnore(const int& char_id, const int& type, const std::string& name);
|
||||
void GetFriendsAndIgnore(const int& char_id, std::vector<std::string> &Friends, std::vector<std::string> &Ignorees);
|
||||
|
||||
protected:
|
||||
void HandleMysqlError(uint32 errnum);
|
||||
private:
|
||||
void DBInitVars();
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user