Changeset 162074 in webkit


Ignore:
Timestamp:
Jan 15, 2014 9:45:43 AM (10 years ago)
Author:
andersca@apple.com
Message:

Get rid of RefCountedCustomAllocated
https://bugs.webkit.org/show_bug.cgi?id=127051

Reviewed by Antti Koivisto.

It's not used anywhere anymore, get rid of it.

  • wtf/RefCounted.h:
  • wtf/SizeLimits.cpp:
Location:
trunk/Source/WTF
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r162033 r162074  
     12014-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
    1132014-01-14  Anders Carlsson  <andersca@apple.com>
    214
  • trunk/Source/WTF/wtf/RefCounted.h

    r161999 r162074  
    155155};
    156156
    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 
    173157} // namespace WTF
    174158
    175159using WTF::RefCounted;
    176 using WTF::RefCountedCustomAllocated;
    177160
    178161#endif // RefCounted_h
  • trunk/Source/WTF/wtf/SizeLimits.cpp

    r162033 r162074  
    7474static_assert(sizeof(PassRefPtr<RefCounted<int>>) == sizeof(int*), "PassRefPtr should stay small!");
    7575static_assert(sizeof(RefCounted<int>) == sizeof(SameSizeAsRefCounted), "RefCounted should stay small!");
    76 static_assert(sizeof(RefCountedCustomAllocated<int>) == sizeof(SameSizeAsRefCounted), "RefCountedCustomAllocated should stay small!");
    7776static_assert(sizeof(RefPtr<RefCounted<int>>) == sizeof(int*), "RefPtr should stay small!");
    7877static_assert(sizeof(Vector<int>) == sizeof(SameSizeAsVectorWithInlineCapacity<int>), "Vector should stay small!");
Note: See TracChangeset for help on using the changeset viewer.