Skip to content

Commit

Permalink
remove function updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Александр authored and leha-bot committed Aug 18, 2019
1 parent a96e15c commit 0e41fbf
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Telegram/SourceFiles/data/data_flags.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,19 @@ class Flags {
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 {
Expand All @@ -74,11 +74,11 @@ class Flags {
// }

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<Change> _changes;
Expand Down

0 comments on commit 0e41fbf

Please sign in to comment.