Commit 6b02c99f authored by Ronan's avatar Ronan
Browse files

fix(ChatMessage): remove useless code

parent d7bc4b66
......@@ -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();
}
......
......@@ -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;
......
......@@ -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();
}
......
......@@ -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 ();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment