Remove Viewer comparison operators.
This commit is contained in:
parent
511a9da2b2
commit
de5718d0e5
@ -23,14 +23,6 @@ td_api::object_ptr<td_api::messageViewer> MessageViewer::get_message_viewer_obje
|
||||
contacts_manager->get_user_id_object(user_id_, "get_message_viewer_object"), date_);
|
||||
}
|
||||
|
||||
bool operator==(const MessageViewer &lhs, const MessageViewer &rhs) {
|
||||
return lhs.user_id_ == rhs.user_id_ && lhs.date_ == rhs.date_;
|
||||
}
|
||||
|
||||
bool operator!=(const MessageViewer &lhs, const MessageViewer &rhs) {
|
||||
return !(lhs == rhs);
|
||||
}
|
||||
|
||||
StringBuilder &operator<<(StringBuilder &string_builder, const MessageViewer &viewer) {
|
||||
return string_builder << '[' << viewer.user_id_ << " at " << viewer.date_ << ']';
|
||||
}
|
||||
|
@ -23,8 +23,6 @@ class MessageViewer {
|
||||
|
||||
friend StringBuilder &operator<<(StringBuilder &string_builder, const MessageViewer &viewer);
|
||||
|
||||
friend bool operator==(const MessageViewer &lhs, const MessageViewer &rhs);
|
||||
|
||||
public:
|
||||
explicit MessageViewer(telegram_api::object_ptr<telegram_api::readParticipantDate> &&read_date);
|
||||
|
||||
@ -42,10 +40,6 @@ class MessageViewer {
|
||||
td_api::object_ptr<td_api::messageViewer> get_message_viewer_object(ContactsManager *contacts_manager) const;
|
||||
};
|
||||
|
||||
bool operator==(const MessageViewer &lhs, const MessageViewer &rhs);
|
||||
|
||||
bool operator!=(const MessageViewer &lhs, const MessageViewer &rhs);
|
||||
|
||||
StringBuilder &operator<<(StringBuilder &string_builder, const MessageViewer &viewer);
|
||||
|
||||
class MessageViewers {
|
||||
|
@ -18,14 +18,6 @@ td_api::object_ptr<td_api::storyViewer> StoryViewer::get_story_viewer_object(Con
|
||||
contacts_manager->get_user_id_object(user_id_, "get_story_viewer_object"), date_);
|
||||
}
|
||||
|
||||
bool operator==(const StoryViewer &lhs, const StoryViewer &rhs) {
|
||||
return lhs.user_id_ == rhs.user_id_ && lhs.date_ == rhs.date_;
|
||||
}
|
||||
|
||||
bool operator!=(const StoryViewer &lhs, const StoryViewer &rhs) {
|
||||
return !(lhs == rhs);
|
||||
}
|
||||
|
||||
StringBuilder &operator<<(StringBuilder &string_builder, const StoryViewer &viewer) {
|
||||
return string_builder << '[' << viewer.user_id_ << " at " << viewer.date_ << ']';
|
||||
}
|
||||
|
@ -23,8 +23,6 @@ class StoryViewer {
|
||||
|
||||
friend StringBuilder &operator<<(StringBuilder &string_builder, const StoryViewer &viewer);
|
||||
|
||||
friend bool operator==(const StoryViewer &lhs, const StoryViewer &rhs);
|
||||
|
||||
public:
|
||||
StoryViewer(UserId user_id, int32 date) : user_id_(user_id), date_(td::max(date, static_cast<int32>(0))) {
|
||||
}
|
||||
@ -40,10 +38,6 @@ class StoryViewer {
|
||||
td_api::object_ptr<td_api::storyViewer> get_story_viewer_object(ContactsManager *contacts_manager) const;
|
||||
};
|
||||
|
||||
bool operator==(const StoryViewer &lhs, const StoryViewer &rhs);
|
||||
|
||||
bool operator!=(const StoryViewer &lhs, const StoryViewer &rhs);
|
||||
|
||||
StringBuilder &operator<<(StringBuilder &string_builder, const StoryViewer &viewer);
|
||||
|
||||
class StoryViewers {
|
||||
|
Loading…
Reference in New Issue
Block a user