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

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

Powered by Google App Engine
This is Rietveld 408576698