aboutsummaryrefslogtreecommitdiff
path: root/src/base.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2018-11-05 20:54:48 +0800
committercrupest <crupest@outlook.com>2018-11-05 20:54:48 +0800
commit1dab244aaad8694ba37ef43caedd8c8ba0310c00 (patch)
treef70f6489a0f88520a0bdc095cd9713d03f83687b /src/base.cpp
parent252519effe30881825dd02e26dc41bd9cde34782 (diff)
downloadcru-1dab244aaad8694ba37ef43caedd8c8ba0310c00.tar.gz
cru-1dab244aaad8694ba37ef43caedd8c8ba0310c00.tar.bz2
cru-1dab244aaad8694ba37ef43caedd8c8ba0310c00.zip
...
Diffstat (limited to 'src/base.cpp')
-rw-r--r--src/base.cpp21
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);
- }
}