| Index: Source/wtf/Uint8ClampedArray.h
|
| diff --git a/Source/wtf/Uint8ClampedArray.h b/Source/wtf/Uint8ClampedArray.h
|
| index ef6797de446846de75fdd12d932aee1802b658f0..abefd28aee17a6cc4f7e9adb31c616ee1d794953 100644
|
| --- a/Source/wtf/Uint8ClampedArray.h
|
| +++ b/Source/wtf/Uint8ClampedArray.h
|
| @@ -39,21 +39,9 @@ public:
|
| static inline PassRefPtr<Uint8ClampedArray> create(const unsigned char* array, unsigned length);
|
| static inline PassRefPtr<Uint8ClampedArray> create(PassRefPtr<ArrayBuffer>, unsigned byteOffset, unsigned length);
|
|
|
| - // Should only be used when it is known the entire array will be filled. Do
|
| - // not return these results directly to JavaScript without filling first.
|
| - static inline PassRefPtr<Uint8ClampedArray> createUninitialized(unsigned length);
|
| -
|
| - // It's only needed to potentially call this method if the array
|
| - // was created uninitialized -- the default initialization paths
|
| - // zero the allocated memory.
|
| - inline void zeroFill();
|
| -
|
| using TypedArrayBase<unsigned char>::set;
|
| inline void set(unsigned index, double value);
|
|
|
| - inline PassRefPtr<Uint8ClampedArray> subarray(int start) const;
|
| - inline PassRefPtr<Uint8ClampedArray> subarray(int start, int end) const;
|
| -
|
| virtual ViewType type() const override
|
| {
|
| return TypeUint8Clamped;
|
| @@ -82,16 +70,6 @@ PassRefPtr<Uint8ClampedArray> Uint8ClampedArray::create(PassRefPtr<ArrayBuffer>
|
| return TypedArrayBase<unsigned char>::create<Uint8ClampedArray>(buffer, byteOffset, length);
|
| }
|
|
|
| -PassRefPtr<Uint8ClampedArray> Uint8ClampedArray::createUninitialized(unsigned length)
|
| -{
|
| - return TypedArrayBase<unsigned char>::createUninitialized<Uint8ClampedArray>(length);
|
| -}
|
| -
|
| -void Uint8ClampedArray::zeroFill()
|
| -{
|
| - zeroRange(0, length());
|
| -}
|
| -
|
| void Uint8ClampedArray::set(unsigned index, double value)
|
| {
|
| if (index >= m_length)
|
| @@ -108,16 +86,6 @@ Uint8ClampedArray::Uint8ClampedArray(PassRefPtr<ArrayBuffer> buffer, unsigned by
|
| {
|
| }
|
|
|
| -PassRefPtr<Uint8ClampedArray> Uint8ClampedArray::subarray(int start) const
|
| -{
|
| - return subarray(start, length());
|
| -}
|
| -
|
| -PassRefPtr<Uint8ClampedArray> Uint8ClampedArray::subarray(int start, int end) const
|
| -{
|
| - return subarrayImpl<Uint8ClampedArray>(start, end);
|
| -}
|
| -
|
| } // namespace WTF
|
|
|
| using WTF::Uint8ClampedArray;
|
|
|