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

Unified Diff: Source/wtf/Int32Array.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/Int16Array.h ('k') | Source/wtf/Int8Array.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/Int32Array.h
diff --git a/Source/wtf/Int32Array.h b/Source/wtf/Int32Array.h
index 9145ab5f3713d9d37a36b06c58a02814458215a0..022ae5b46fb309912170cb8cb762e64e028a6161 100644
--- a/Source/wtf/Int32Array.h
+++ b/Source/wtf/Int32Array.h
@@ -37,16 +37,9 @@ public:
static inline PassRefPtr<Int32Array> create(const int* array, unsigned length);
static inline PassRefPtr<Int32Array> 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<Int32Array> createUninitialized(unsigned length);
-
using TypedArrayBase<int>::set;
using IntegralTypedArrayBase<int>::set;
- inline PassRefPtr<Int32Array> subarray(int start) const;
- inline PassRefPtr<Int32Array> subarray(int start, int end) const;
-
virtual ViewType type() const override
{
return TypeInt32;
@@ -75,26 +68,11 @@ PassRefPtr<Int32Array> Int32Array::create(PassRefPtr<ArrayBuffer> buffer, unsign
return TypedArrayBase<int>::create<Int32Array>(buffer, byteOffset, length);
}
-PassRefPtr<Int32Array> Int32Array::createUninitialized(unsigned length)
-{
- return TypedArrayBase<int>::createUninitialized<Int32Array>(length);
-}
-
Int32Array::Int32Array(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
: IntegralTypedArrayBase<int>(buffer, byteOffset, length)
{
}
-PassRefPtr<Int32Array> Int32Array::subarray(int start) const
-{
- return subarray(start, length());
-}
-
-PassRefPtr<Int32Array> Int32Array::subarray(int start, int end) const
-{
- return subarrayImpl<Int32Array>(start, end);
-}
-
} // namespace WTF
using WTF::Int32Array;
« no previous file with comments | « Source/wtf/Int16Array.h ('k') | Source/wtf/Int8Array.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698