Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
9a37144a
Commit
9a37144a
authored
15 years ago
by
Alexei Arabadji
Browse files
Options
Downloads
Patches
Plain Diff
removed unused method LLIMModel::addMessageSilently;
--HG-- branch : product-engine
parent
288f67e4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/newview/llimview.cpp
+5
-12
5 additions, 12 deletions
indra/newview/llimview.cpp
indra/newview/llimview.h
+0
-5
0 additions, 5 deletions
indra/newview/llimview.h
with
5 additions
and
17 deletions
indra/newview/llimview.cpp
+
5
−
12
View file @
9a37144a
...
@@ -482,8 +482,7 @@ bool LLIMModel::proccessOnlineOfflineNotification(
...
@@ -482,8 +482,7 @@ bool LLIMModel::proccessOnlineOfflineNotification(
}
}
bool
LLIMModel
::
addMessage
(
const
LLUUID
&
session_id
,
const
std
::
string
&
from
,
const
LLUUID
&
from_id
,
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
);
LLIMSession
*
session
=
findIMSession
(
session_id
);
if
(
!
session
)
if
(
!
session
)
...
@@ -492,7 +491,10 @@ bool LLIMModel::addMessage(const LLUUID& session_id, const std::string& from, co
...
@@ -492,7 +491,10 @@ bool LLIMModel::addMessage(const LLUUID& session_id, const std::string& from, co
return
false
;
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
// notify listeners
LLSD
arg
;
LLSD
arg
;
...
@@ -507,15 +509,6 @@ bool LLIMModel::addMessage(const LLUUID& session_id, const std::string& from, co
...
@@ -507,15 +509,6 @@ bool LLIMModel::addMessage(const LLUUID& session_id, const std::string& from, co
return
true
;
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
const
std
::
string
&
LLIMModel
::
getName
(
const
LLUUID
&
session_id
)
const
{
{
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llimview.h
+
0
−
5
View file @
9a37144a
...
@@ -145,11 +145,6 @@ class LLIMModel : public LLSingleton<LLIMModel>
...
@@ -145,11 +145,6 @@ class LLIMModel : public LLSingleton<LLIMModel>
*/
*/
bool
addMessage
(
const
LLUUID
&
session_id
,
const
std
::
string
&
from
,
const
LLUUID
&
other_participant_id
,
const
std
::
string
&
utf8_text
,
bool
log2file
=
true
);
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
* Add a system message to an IM Model
*/
*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment