SL-10351 Cleanup

master
andreykproductengine 2019-02-15 15:03:27 +02:00
parent d6a4504cd8
commit a8afd345a0
2 changed files with 0 additions and 19 deletions

View File

@ -602,24 +602,6 @@ bool LLConversationItemParticipant::isVoiceMuted()
return mIsModeratorMuted || LLMuteList::getInstance()->isMuted(mUUID, LLMute::flagVoiceChat);
}
void LLConversationItemParticipant::muteVoice(bool mute_voice)
{
LLAvatarName av_name;
LLAvatarNameCache::get(mUUID, &av_name);
LLMuteList * mute_listp = LLMuteList::getInstance();
bool voice_already_muted = mute_listp->isMuted(mUUID, av_name.getUserName(), LLMute::flagVoiceChat);
LLMute mute(mUUID, av_name.getUserName(), LLMute::AGENT);
if (voice_already_muted && !mute_voice)
{
mute_listp->remove(mute, LLMute::flagVoiceChat);
}
else if (!voice_already_muted && mute_voice)
{
mute_listp->add(mute, LLMute::flagVoiceChat);
}
}
//
// LLConversationSort
//

View File

@ -196,7 +196,6 @@ public:
bool isVoiceMuted();
bool isModeratorMuted() { return mIsModeratorMuted; }
bool isModerator() const { return mIsModerator; }
void muteVoice(bool mute_voice);
void moderateVoice(bool mute_voice) { mIsModeratorMuted = mute_voice; }
void setIsModerator(bool is_moderator) { mIsModerator = is_moderator; mNeedsRefresh = true; }
void setTimeNow() { mLastActiveTime = LLFrameTimer::getElapsedSeconds(); mNeedsRefresh = true; }