From fb979167127ffaaacec7361ecb45791bf542305f Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Tue, 1 May 2018 13:53:19 +0900 Subject: Event: cleanup --- lib/events/event.cpp | 4 ---- lib/events/event.h | 5 +---- 2 files changed, 1 insertion(+), 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(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 _redactedBecause; QString _txnId; }; -- cgit v1.2.3