From 937fa526b90aaafd745a73839702d2069220e33d Mon Sep 17 00:00:00 2001 From: levlam Date: Mon, 6 Sep 2021 16:51:45 +0300 Subject: [PATCH] Remove unused field. --- telegram-bot-api/Client.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/telegram-bot-api/Client.cpp b/telegram-bot-api/Client.cpp index 3e7e44f..48a469b 100644 --- a/telegram-bot-api/Client.cpp +++ b/telegram-bot-api/Client.cpp @@ -1435,15 +1435,9 @@ class Client::JsonVoiceChatScheduled : public Jsonable { class Client::JsonVoiceChatStarted : public Jsonable { public: - explicit JsonVoiceChatStarted(const td_api::messageVoiceChatStarted *voice_chat_started) - : voice_chat_started_(voice_chat_started) { - } void store(JsonValueScope *scope) const { auto object = scope->enter_object(); } - - private: - const td_api::messageVoiceChatStarted *voice_chat_started_; }; class Client::JsonVoiceChatEnded : public Jsonable { @@ -1874,11 +1868,9 @@ void Client::JsonMessage::store(JsonValueScope *scope) const { object("voice_chat_scheduled", JsonVoiceChatScheduled(content)); break; } - case td_api::messageVoiceChatStarted::ID: { - auto content = static_cast(message_->content.get()); - object("voice_chat_started", JsonVoiceChatStarted(content)); + case td_api::messageVoiceChatStarted::ID: + object("voice_chat_started", JsonVoiceChatStarted()); break; - } case td_api::messageVoiceChatEnded::ID: { auto content = static_cast(message_->content.get()); object("voice_chat_ended", JsonVoiceChatEnded(content));