diff options
author | crupest <crupest@outlook.com> | 2018-11-05 20:54:48 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-11-05 20:54:48 +0800 |
commit | 1dab244aaad8694ba37ef43caedd8c8ba0310c00 (patch) | |
tree | f70f6489a0f88520a0bdc095cd9713d03f83687b /src/base.cpp | |
parent | 252519effe30881825dd02e26dc41bd9cde34782 (diff) | |
download | cru-1dab244aaad8694ba37ef43caedd8c8ba0310c00.tar.gz cru-1dab244aaad8694ba37ef43caedd8c8ba0310c00.tar.bz2 cru-1dab244aaad8694ba37ef43caedd8c8ba0310c00.zip |
...
Diffstat (limited to 'src/base.cpp')
-rw-r--r-- | src/base.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/base.cpp b/src/base.cpp index ce5554aa..f5868170 100644 --- a/src/base.cpp +++ b/src/base.cpp @@ -17,25 +17,4 @@ namespace cru throw Win32Error(::GetLastError(), "Failed to convert wide string to UTF-8."); return result; } - - void PropertyChangedNotifyObject::AddPropertyChangedListener(FunctionPtr<void(const StringView&)> listener) - { - listeners_.push_back(std::move(listener)); - } - - void PropertyChangedNotifyObject::RemovePropertyChangedListener(const FunctionPtr<void(const StringView&)>& listener) - { - for (auto i = listeners_.cbegin(); i != listeners_.cend(); ++i) - if (*i == listener) - { - listeners_.erase(i); - break; - } - } - - void PropertyChangedNotifyObject::RaisePropertyChangedEvent(const StringView& property_name) - { - for (const auto& listener : listeners_) - (*listener)(property_name); - } } |