From 0e41fbf5e46aad16ccd0a127202207d4bdb6c6d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80?= Date: Sun, 18 Aug 2019 17:42:18 +0300 Subject: [PATCH] remove function updated --- Telegram/SourceFiles/data/data_flags.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Telegram/SourceFiles/data/data_flags.h b/Telegram/SourceFiles/data/data_flags.h index 6a9520983..e71963c1c 100644 --- a/Telegram/SourceFiles/data/data_flags.h +++ b/Telegram/SourceFiles/data/data_flags.h @@ -46,19 +46,19 @@ public: void set(FlagsType which) { if (auto diff = which ^ _value) { _value = which; - updated(diff); + //updated(diff); } } void add(FlagsType which) { if (auto diff = which & ~_value) { _value |= which; - updated(diff); + //updated(diff); } } void remove(FlagsType which) { if (auto diff = which & _value) { _value &= ~which; - updated(diff); + //updated(diff); } } FlagsType current() const { @@ -74,11 +74,11 @@ public: // } private: - void updated(FlagsType diff) { - if ((diff &= FlagsType::from_raw(kEssential))) { - _changes.fire({ diff, _value }); - } - } +// void updated(FlagsType diff) { +// if ((diff &= FlagsType::from_raw(kEssential))) { +// _changes.fire({ diff, _value }); +// } +// } FlagsType _value = 0; //rpl::event_stream _changes;