From b01dc3cb865c2faacfa69f6a081117bf349c6f40 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Sun, 2 Jun 2013 00:28:55 +0200 Subject: Move a few trivial functions into headers --- src/channels.cpp | 15 --------------- src/configreader.cpp | 5 ----- src/hashcomp.cpp | 5 ----- src/helperfuncs.cpp | 6 ------ src/mode.cpp | 10 ---------- src/modules.cpp | 6 ------ 6 files changed, 47 deletions(-) (limited to 'src') diff --git a/src/channels.cpp b/src/channels.cpp index 1c8e9e856..4010f819a 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -137,11 +137,6 @@ int Channel::SetTopic(User *u, std::string &ntopic, bool forceset) return CMD_SUCCESS; } -long Channel::GetUserCounter() -{ - return userlist.size(); -} - Membership* Channel::AddUser(User* user) { Membership*& memb = userlist[user]; @@ -182,11 +177,6 @@ void Channel::DelUser(User* user) } } -bool Channel::HasUser(User* user) -{ - return (userlist.find(user) != userlist.end()); -} - Membership* Channel::GetUser(User* user) { UserMembIter i = userlist.find(user); @@ -195,11 +185,6 @@ Membership* Channel::GetUser(User* user) return i->second; } -const UserMembList* Channel::GetUsers() -{ - return &userlist; -} - void Channel::SetDefaultModes() { ServerInstance->Logs->Log("CHANNELS", LOG_DEBUG, "SetDefaultModes %s", diff --git a/src/configreader.cpp b/src/configreader.cpp index 0016fccaf..a8c0abe89 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -784,11 +784,6 @@ const char* ServerConfig::CleanFilename(const char* name) return (p != name ? ++p : p); } -const std::string& ServerConfig::GetSID() -{ - return sid; -} - void ConfigReaderThread::Run() { Config->Read(); diff --git a/src/hashcomp.cpp b/src/hashcomp.cpp index b320f3546..1d37c2a80 100644 --- a/src/hashcomp.cpp +++ b/src/hashcomp.cpp @@ -432,11 +432,6 @@ irc::stringjoiner::stringjoiner(const std::string& seperator, const std::vector< joined.append(sequence[end]); } -const std::string& irc::stringjoiner::GetJoined() const -{ - return joined; -} - irc::portparser::portparser(const std::string &source, bool allow_overlapped) : sep(source), in_range(0), range_begin(0), range_end(0), overlapped(allow_overlapped) { diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp index e86c0bc70..9ed77fb99 100644 --- a/src/helperfuncs.cpp +++ b/src/helperfuncs.cpp @@ -116,12 +116,6 @@ void InspIRCd::SendError(const std::string &s) } } -/* return channel count */ -long InspIRCd::ChannelCount() -{ - return chanlist->size(); -} - bool InspIRCd::IsValidMask(const std::string &mask) { const char* dest = mask.c_str(); diff --git a/src/mode.cpp b/src/mode.cpp index c96f25f7f..578fc2c27 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -44,11 +44,6 @@ ModeHandler::~ModeHandler() { } -bool ModeHandler::IsListMode() -{ - return list; -} - unsigned int ModeHandler::GetPrefixRank() { return 0; @@ -556,11 +551,6 @@ void ModeParser::DisplayListModes(User* user, Channel* chan, std::string &mode_s } } -const std::string& ModeParser::GetLastParse() -{ - return LastParse; -} - void ModeParser::CleanMask(std::string &mask) { std::string::size_type pos_of_pling = mask.find_first_of('!'); diff --git a/src/modules.cpp b/src/modules.cpp index dfbe1358e..871bb9499 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -552,12 +552,6 @@ void dynamic_reference_base::resolve() value = NULL; } -void InspIRCd::SendMode(const std::vector& parameters, User *user) -{ - this->Modes->Process(parameters, user); -} - - void InspIRCd::SendGlobalMode(const std::vector& parameters, User *user) { Modes->Process(parameters, user); -- cgit v1.2.3