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

Unified Diff: third_party/WebKit/Source/wtf/RefPtr.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
« no previous file with comments | « third_party/WebKit/Source/wtf/PassRefPtr.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/RefPtr.h
diff --git a/third_party/WebKit/Source/wtf/RefPtr.h b/third_party/WebKit/Source/wtf/RefPtr.h
index 0097b914fe56229596f906da298c79dc80788251..a4bf14be38026d6862afedde47f58e99da737624 100644
--- a/third_party/WebKit/Source/wtf/RefPtr.h
+++ b/third_party/WebKit/Source/wtf/RefPtr.h
@@ -166,11 +166,6 @@ template <typename T> inline bool operator!=(std::nullptr_t, const RefPtr<T>& b)
return b.get();
}
-template <typename T, typename U> inline RefPtr<T> static_pointer_cast(const RefPtr<U>& p)
-{
- return RefPtr<T>(static_cast<T*>(p.get()));
-}
-
template <typename T> inline T* getPtr(const RefPtr<T>& p)
{
return p.get();
@@ -192,6 +187,5 @@ private:
} // namespace WTF
using WTF::RefPtr;
-using WTF::static_pointer_cast;
#endif // WTF_RefPtr_h
« no previous file with comments | « third_party/WebKit/Source/wtf/PassRefPtr.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698