removed unused method LLIMModel::addMessageSilently;

--HG--
branch : product-engine
meow-7.2.2
Alexei Arabadji 2009-11-30 18:23:59 +02:00
parent 288f67e462
commit 9a37144a3c
2 changed files with 5 additions and 17 deletions

View File

@ -482,8 +482,7 @@ bool LLIMModel::proccessOnlineOfflineNotification(
}
bool LLIMModel::addMessage(const LLUUID& session_id, const std::string& from, const LLUUID& from_id,
const std::string& utf8_text, bool log2file /* = true */)
{
const std::string& utf8_text, bool log2file /* = true */) {
LLIMSession* session = findIMSession(session_id);
if (!session)
@ -492,7 +491,10 @@ bool LLIMModel::addMessage(const LLUUID& session_id, const std::string& from, co
return false;
}
addMessageSilently(*session, from, from_id, utf8_text, log2file);
addToHistory(session_id, from, from_id, utf8_text);
if (log2file) logToFile(session_id, from, from_id, utf8_text);
session->mNumUnread++;
// notify listeners
LLSD arg;
@ -507,15 +509,6 @@ bool LLIMModel::addMessage(const LLUUID& session_id, const std::string& from, co
return true;
}
void LLIMModel::addMessageSilently(LLIMSession& session, const std::string& from, const LLUUID& from_id,
const std::string& utf8_text, bool log2file /* = true */)
{
addToHistory(session.mSessionID, from, from_id, utf8_text);
if (log2file) logToFile(session.mSessionID, from, from_id, utf8_text);
session.mNumUnread++;
}
const std::string& LLIMModel::getName(const LLUUID& session_id) const
{

View File

@ -145,11 +145,6 @@ public:
*/
bool addMessage(const LLUUID& session_id, const std::string& from, const LLUUID& other_participant_id, const std::string& utf8_text, bool log2file = true);
/**
* Adds message without new message notification.
*/
void addMessageSilently(LLIMSession& session, const std::string& from, const LLUUID& other_participant_id, const std::string& utf8_text, bool log2file = true);
/**
* Add a system message to an IM Model
*/