aboutsummaryrefslogtreecommitdiff
path: root/src/base.cpp
diff options
context:
space:
mode:
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);
- }
}