Changeset 162074 in webkit
- Timestamp:
- Jan 15, 2014 9:45:43 AM (10 years ago)
- Location:
- trunk/Source/WTF
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r162033 r162074 1 2014-01-15 Anders Carlsson <andersca@apple.com> 2 3 Get rid of RefCountedCustomAllocated 4 https://bugs.webkit.org/show_bug.cgi?id=127051 5 6 Reviewed by Antti Koivisto. 7 8 It's not used anywhere anymore, get rid of it. 9 10 * wtf/RefCounted.h: 11 * wtf/SizeLimits.cpp: 12 1 13 2014-01-14 Anders Carlsson <andersca@apple.com> 2 14 -
trunk/Source/WTF/wtf/RefCounted.h
r161999 r162074 155 155 }; 156 156 157 template<typename T> class RefCountedCustomAllocated : public RefCountedBase {158 WTF_MAKE_NONCOPYABLE(RefCountedCustomAllocated);159 160 public:161 void deref()162 {163 if (derefBase())164 delete static_cast<T*>(this);165 }166 167 protected:168 ~RefCountedCustomAllocated()169 {170 }171 };172 173 157 } // namespace WTF 174 158 175 159 using WTF::RefCounted; 176 using WTF::RefCountedCustomAllocated;177 160 178 161 #endif // RefCounted_h -
trunk/Source/WTF/wtf/SizeLimits.cpp
r162033 r162074 74 74 static_assert(sizeof(PassRefPtr<RefCounted<int>>) == sizeof(int*), "PassRefPtr should stay small!"); 75 75 static_assert(sizeof(RefCounted<int>) == sizeof(SameSizeAsRefCounted), "RefCounted should stay small!"); 76 static_assert(sizeof(RefCountedCustomAllocated<int>) == sizeof(SameSizeAsRefCounted), "RefCountedCustomAllocated should stay small!");77 76 static_assert(sizeof(RefPtr<RefCounted<int>>) == sizeof(int*), "RefPtr should stay small!"); 78 77 static_assert(sizeof(Vector<int>) == sizeof(SameSizeAsVectorWithInlineCapacity<int>), "Vector should stay small!");
Note: See TracChangeset
for help on using the changeset viewer.