Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(107)

Unified Diff: base/observer_list.h

Issue 2451933003: base: Erase unused FOR_EACH_OBSERVER macro. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/android/java/src/org/chromium/base/ObserverList.java ('k') | base/observer_list_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/observer_list.h
diff --git a/base/observer_list.h b/base/observer_list.h
index 8f0be2d639bafc585efd0932cafbd21e42252850..0572ba6500da0f3584eb8d507e69a962ebf751f9 100644
--- a/base/observer_list.h
+++ b/base/observer_list.h
@@ -344,13 +344,6 @@ class ObserverList : public ObserverListBase<ObserverType> {
}
};
-// Deprecated. Use the range-based for loop instead.
-#define FOR_EACH_OBSERVER(ObserverType, observer_list, func) \
- do { \
- for (ObserverType & o : observer_list) \
- o.func; \
- } while (0)
-
} // namespace base
#endif // BASE_OBSERVER_LIST_H_
« no previous file with comments | « base/android/java/src/org/chromium/base/ObserverList.java ('k') | base/observer_list_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698