Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
6b02c99f
Commit
6b02c99f
authored
Nov 29, 2017
by
Ronan
Browse files
fix(ChatMessage): remove useless code
parent
d7bc4b66
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 addition
and
21 deletions
+1
-21
src/c-wrapper/api/c-chat-message.cpp
src/c-wrapper/api/c-chat-message.cpp
+0
-8
src/chat/chat-message/chat-message-p.h
src/chat/chat-message/chat-message-p.h
+0
-4
src/chat/chat-message/chat-message.cpp
src/chat/chat-message/chat-message.cpp
+0
-8
src/chat/chat-room/chat-room.h
src/chat/chat-room/chat-room.h
+1
-1
No files found.
src/c-wrapper/api/c-chat-message.cpp
View file @
6b02c99f
...
...
@@ -138,10 +138,6 @@ void linphone_chat_message_set_outgoing(LinphoneChatMessage *msg) {
L_GET_PRIVATE_FROM_C_OBJECT
(
msg
)
->
setDirection
(
LinphonePrivate
::
ChatMessage
::
Direction
::
Outgoing
);
}
unsigned
int
linphone_chat_message_get_storage_id
(
LinphoneChatMessage
*
msg
)
{
return
L_GET_PRIVATE_FROM_C_OBJECT
(
msg
)
->
getStorageId
();
}
LinphoneChatMessageState
linphone_chat_message_get_state
(
const
LinphoneChatMessage
*
msg
)
{
return
((
LinphoneChatMessageState
)
L_GET_CPP_PTR_FROM_C_OBJECT
(
msg
)
->
getState
());
}
...
...
@@ -158,10 +154,6 @@ void linphone_chat_message_set_message_id(LinphoneChatMessage *msg, char *id) {
L_GET_CPP_PTR_FROM_C_OBJECT
(
msg
)
->
setImdnMessageId
(
L_C_TO_STRING
(
id
));
}
void
linphone_chat_message_set_storage_id
(
LinphoneChatMessage
*
msg
,
unsigned
int
id
)
{
L_GET_PRIVATE_FROM_C_OBJECT
(
msg
)
->
setStorageId
(
id
);
}
bool_t
linphone_chat_message_is_read
(
LinphoneChatMessage
*
msg
)
{
return
L_GET_CPP_PTR_FROM_C_OBJECT
(
msg
)
->
isRead
();
}
...
...
src/chat/chat-message/chat-message-p.h
View file @
6b02c99f
...
...
@@ -73,9 +73,6 @@ public:
this
->
toAddress
=
toAddress
;
}
unsigned
int
getStorageId
()
const
;
void
setStorageId
(
unsigned
int
id
);
belle_http_request_t
*
getHttpRequest
()
const
;
void
setHttpRequest
(
belle_http_request_t
*
request
);
...
...
@@ -127,7 +124,6 @@ public:
private:
// TODO: Clean attributes.
unsigned
int
storageId
=
0
;
time_t
time
=
::
ms_time
(
0
);
// TODO: Change me in all files.
std
::
string
id
;
std
::
string
rttMessage
;
...
...
src/chat/chat-message/chat-message.cpp
View file @
6b02c99f
...
...
@@ -100,14 +100,6 @@ void ChatMessagePrivate::setState (ChatMessage::State s, bool force) {
store
();
}
unsigned
int
ChatMessagePrivate
::
getStorageId
()
const
{
return
storageId
;
}
void
ChatMessagePrivate
::
setStorageId
(
unsigned
int
id
)
{
storageId
=
id
;
}
belle_http_request_t
*
ChatMessagePrivate
::
getHttpRequest
()
const
{
return
fileTransferChatMessageModifier
.
getHttpRequest
();
}
...
...
src/chat/chat-room/chat-room.h
View file @
6b02c99f
...
...
@@ -58,7 +58,7 @@ public:
virtual
CapabilitiesMask
getCapabilities
()
const
=
0
;
std
::
shared_ptr
<
ChatMessage
>
getLastMessageInHistory
()
const
;
std
::
shared_ptr
<
ChatMessage
>
getLastMessageInHistory
()
const
;
// TODO: Remove useless functions.
void
compose
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment