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

Unified Diff: Source/wtf/Uint32Array.h

Issue 1180713004: Remove unused code from WTF TypedArrays (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | « Source/wtf/Uint16Array.h ('k') | Source/wtf/Uint8Array.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/Uint32Array.h
diff --git a/Source/wtf/Uint32Array.h b/Source/wtf/Uint32Array.h
index 8037ab523d620c9c130999660faebe81bb3ac318..90b5d35b28e535f5cc987f52797f1f04f9fb32ca 100644
--- a/Source/wtf/Uint32Array.h
+++ b/Source/wtf/Uint32Array.h
@@ -39,16 +39,9 @@ public:
static inline PassRefPtr<Uint32Array> create(const unsigned* array, unsigned length);
static inline PassRefPtr<Uint32Array> 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<Uint32Array> createUninitialized(unsigned length);
-
using TypedArrayBase<unsigned>::set;
using IntegralTypedArrayBase<unsigned>::set;
- inline PassRefPtr<Uint32Array> subarray(int start) const;
- inline PassRefPtr<Uint32Array> subarray(int start, int end) const;
-
virtual ViewType type() const override
{
return TypeUint32;
@@ -77,26 +70,11 @@ PassRefPtr<Uint32Array> Uint32Array::create(PassRefPtr<ArrayBuffer> buffer, unsi
return TypedArrayBase<unsigned>::create<Uint32Array>(buffer, byteOffset, length);
}
-PassRefPtr<Uint32Array> Uint32Array::createUninitialized(unsigned length)
-{
- return TypedArrayBase<unsigned>::createUninitialized<Uint32Array>(length);
-}
-
Uint32Array::Uint32Array(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
: IntegralTypedArrayBase<unsigned>(buffer, byteOffset, length)
{
}
-PassRefPtr<Uint32Array> Uint32Array::subarray(int start) const
-{
- return subarray(start, length());
-}
-
-PassRefPtr<Uint32Array> Uint32Array::subarray(int start, int end) const
-{
- return subarrayImpl<Uint32Array>(start, end);
-}
-
} // namespace WTF
using WTF::Uint32Array;
« no previous file with comments | « Source/wtf/Uint16Array.h ('k') | Source/wtf/Uint8Array.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698