fix(ChatRoom): remove useless code

This commit is contained in:
Ronan Abhamon 2017-11-29 15:59:22 +01:00
parent f0ca552ce4
commit 91a64a7462
2 changed files with 0 additions and 34 deletions

View file

@ -36,8 +36,6 @@ class ChatRoomPrivate : public ObjectPrivate, public IsComposingListener {
public:
ChatRoomPrivate () = default;
static int createChatMessageFromDb (void *data, int argc, char **argv, char **colName);
void addTransientEvent (const std::shared_ptr<EventLog> &log);
void removeTransientEvent (const std::shared_ptr<EventLog> &log);
@ -49,7 +47,6 @@ public:
void sendIsComposingNotification ();
int createChatMessageFromDb (int argc, char **argv, char **colName);
std::list<std::shared_ptr<ChatMessage>> findMessages (const std::string &messageId) const;
virtual LinphoneReason messageReceived (SalOp *op, const SalMessage *msg);

View file

@ -35,13 +35,6 @@ LINPHONE_BEGIN_NAMESPACE
// -----------------------------------------------------------------------------
int ChatRoomPrivate::createChatMessageFromDb (void *data, int argc, char **argv, char **colName) {
ChatRoomPrivate *d = reinterpret_cast<ChatRoomPrivate *>(data);
return d->createChatMessageFromDb(argc, argv, colName);
}
// -----------------------------------------------------------------------------
void ChatRoomPrivate::addTransientEvent (const shared_ptr<EventLog> &log) {
auto iter = find(transientEvents.begin(), transientEvents.end(), log);
if (iter == transientEvents.end())
@ -129,30 +122,6 @@ time_t ChatRoom::getLastUpdateTime () const {
// -----------------------------------------------------------------------------
/**
* DB layout:
*
* | 0 | storage_id
* | 1 | localContact
* | 2 | remoteContact
* | 3 | direction flag (LinphoneChatMessageDir)
* | 4 | message (text content of the message)
* | 5 | time (unused now, used to be string-based timestamp, replaced by the utc timestamp)
* | 6 | read flag (no longer used, replaced by the LinphoneChatMessageStateDisplayed state)
* | 7 | status (LinphoneChatMessageState)
* | 8 | external body url (deprecated file transfer system)
* | 9 | utc timestamp
* | 10 | app data text
* | 11 | linphone content id (LinphoneContent describing a file transfer)
* | 12 | message id (used for IMDN)
* | 13 | content type (of the message field [must be text representable])
* | 14 | secured flag
*/
int ChatRoomPrivate::createChatMessageFromDb (int argc, char **argv, char **colName) {
// TODO: history.
return 0;
}
list<shared_ptr<ChatMessage> > ChatRoomPrivate::findMessages (const string &messageId) const {
L_Q();
return q->getCore()->getPrivate()->mainDb->findChatMessages(q->getChatRoomId(), messageId);