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

Unified Diff: third_party/WebKit/Source/wtf/PassRefPtr.h

Issue 2254073002: Remove WTF::static_pointer_cast functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
Index: third_party/WebKit/Source/wtf/PassRefPtr.h
diff --git a/third_party/WebKit/Source/wtf/PassRefPtr.h b/third_party/WebKit/Source/wtf/PassRefPtr.h
index 8926a126364d9acb9c916516130e61f549d376bb..2b9c355d54829c45549fd344c512851ead7167d5 100644
--- a/third_party/WebKit/Source/wtf/PassRefPtr.h
+++ b/third_party/WebKit/Source/wtf/PassRefPtr.h
@@ -202,11 +202,6 @@ template <typename T> PassRefPtr<T> adoptRef(T* p)
return PassRefPtr<T>(p, PassRefPtr<T>::AdoptRef);
}
-template <typename T, typename U> inline PassRefPtr<T> static_pointer_cast(const PassRefPtr<U>& p)
-{
- return adoptRef(static_cast<T*>(p.leakRef()));
-}
-
template <typename T> inline T* getPtr(const PassRefPtr<T>& p)
{
return p.get();
@@ -216,6 +211,5 @@ template <typename T> inline T* getPtr(const PassRefPtr<T>& p)
using WTF::PassRefPtr;
using WTF::adoptRef;
-using WTF::static_pointer_cast;
#endif // WTF_PassRefPtr_h
« no previous file with comments | « third_party/WebKit/Source/core/svg/properties/SVGListPropertyHelper.h ('k') | third_party/WebKit/Source/wtf/RefPtr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698