aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-05-01 13:53:19 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-05-01 20:46:54 +0900
commitfb979167127ffaaacec7361ecb45791bf542305f (patch)
treeb1ce880b474e98033e758d388fbdb1fb36046055
parent203a6b61480f726fae341d119f09f9dc83b8829a (diff)
downloadlibquotient-fb979167127ffaaacec7361ecb45791bf542305f.tar.gz
libquotient-fb979167127ffaaacec7361ecb45791bf542305f.zip
Event: cleanup
-rw-r--r--lib/events/event.cpp4
-rw-r--r--lib/events/event.h5
2 files changed, 1 insertions, 8 deletions
diff --git a/lib/events/event.cpp b/lib/events/event.cpp
index 8ddf3945..31520fc9 100644
--- a/lib/events/event.cpp
+++ b/lib/events/event.cpp
@@ -98,10 +98,6 @@ RoomEvent::RoomEvent(Event::Type type) : Event(type) { }
RoomEvent::RoomEvent(Type type, const QJsonObject& rep)
: Event(type, rep)
, _id(rep["event_id"].toString())
-// , _roomId(rep["room_id"].toString())
-// , _senderId(rep["sender"].toString())
-// , _serverTimestamp(
-// QMatrixClient::fromJson<QDateTime>(rep["origin_server_ts"]))
{
// if (_id.isEmpty())
// {
diff --git a/lib/events/event.h b/lib/events/event.h
index 68e598ad..4e2b1071 100644
--- a/lib/events/event.h
+++ b/lib/events/event.h
@@ -167,7 +167,7 @@ namespace QMatrixClient
// constructors and destructors
explicit RoomEvent(Type type);
RoomEvent(Type type, const QJsonObject& rep);
- ~RoomEvent();
+ ~RoomEvent() override;
QString id() const { return _id; }
QDateTime timestamp() const;
@@ -204,9 +204,6 @@ namespace QMatrixClient
private:
QString _id;
-// QString _roomId;
-// QString _senderId;
-// QDateTime _serverTimestamp;
event_ptr_tt<RedactionEvent> _redactedBecause;
QString _txnId;
};