| Index: Source/wtf/TypedArrayBase.h
|
| diff --git a/Source/wtf/TypedArrayBase.h b/Source/wtf/TypedArrayBase.h
|
| index 17f7b586999bde37d4f421b269fcc56df329a75d..4cc1c646d8436eb31a375e7a027e32b89f923354 100644
|
| --- a/Source/wtf/TypedArrayBase.h
|
| +++ b/Source/wtf/TypedArrayBase.h
|
| @@ -75,14 +75,6 @@ public:
|
| return TypedArrayBase<T>::data()[index];
|
| }
|
|
|
| - bool checkInboundData(unsigned offset, unsigned pos) const
|
| - {
|
| - return (offset <= m_length
|
| - && offset + pos <= m_length
|
| - // check overflow
|
| - && offset + pos >= offset);
|
| - }
|
| -
|
| protected:
|
| TypedArrayBase(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
|
| : ArrayBufferView(buffer, byteOffset)
|
| @@ -126,22 +118,6 @@ protected:
|
| return create<Subclass>(buffer.release(), 0, length);
|
| }
|
|
|
| - template <class Subclass>
|
| - static PassRefPtr<Subclass> createUninitialized(unsigned length)
|
| - {
|
| - RefPtr<ArrayBuffer> buffer = ArrayBuffer::createUninitialized(length, sizeof(T));
|
| - return create<Subclass>(buffer.release(), 0, length);
|
| - }
|
| -
|
| - template <class Subclass>
|
| - PassRefPtr<Subclass> subarrayImpl(int start, int end) const
|
| - {
|
| - unsigned offset, length;
|
| - calculateOffsetAndLength(start, end, m_length, &offset, &length);
|
| - clampOffsetAndNumElements<T>(buffer(), m_byteOffset, &offset, &length);
|
| - return create<Subclass>(buffer(), offset, length);
|
| - }
|
| -
|
| virtual void neuter() override final
|
| {
|
| ArrayBufferView::neuter();
|
|
|