From 51dfcc732301b5fe0d8b8b5966b751ff35295ef4 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Wed, 24 Aug 2016 17:09:50 +0900 Subject: Drop unused (by code and by spec) hsob_ts value --- events/roommessageevent.cpp | 11 ----------- events/roommessageevent.h | 2 -- 2 files changed, 13 deletions(-) diff --git a/events/roommessageevent.cpp b/events/roommessageevent.cpp index a111ef12..f02922b5 100644 --- a/events/roommessageevent.cpp +++ b/events/roommessageevent.cpp @@ -19,7 +19,6 @@ #include "roommessageevent.h" #include -#include #include using namespace QMatrixClient; @@ -32,7 +31,6 @@ class RoomMessageEvent::Private QString userId; MessageEventType msgtype; QString plainBody; - QDateTime hsob_ts; MessageEventContent::Base* content; }; @@ -68,11 +66,6 @@ QString RoomMessageEvent::body() const return plainBody(); } -QDateTime RoomMessageEvent::hsob_ts() const -{ - return d->hsob_ts; -} - MessageEventContent::Base* RoomMessageEvent::content() const { return d->content; @@ -189,10 +182,6 @@ RoomMessageEvent* RoomMessageEvent::fromJson(const QJsonObject& obj) } else { qDebug() << "RoomMessageEvent: body not found"; } -// e->d->hsob_ts = QDateTime::fromMSecsSinceEpoch( content.value("hsoc_ts").toInt() ); -// } else { -// qDebug() << "RoomMessageEvent: hsoc_ts not found"; -// } } return e; } diff --git a/events/roommessageevent.h b/events/roommessageevent.h index 27cf5fd8..af3b6797 100644 --- a/events/roommessageevent.h +++ b/events/roommessageevent.h @@ -54,8 +54,6 @@ namespace QMatrixClient */ QString body() const; - QDateTime hsob_ts() const; - MessageEventContent::Base* content() const; static RoomMessageEvent* fromJson( const QJsonObject& obj ); -- cgit v1.2.3