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

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

Powered by Google App Engine
This is Rietveld 408576698