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

Unified Diff: Source/wtf/Float32Array.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/ArrayBufferView.h ('k') | Source/wtf/Float64Array.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/Float32Array.h
diff --git a/Source/wtf/Float32Array.h b/Source/wtf/Float32Array.h
index 4f5580d6f7f0007989ee281822e9130494e9e8d1..5b01b5e05b23ee6a93ff74fdb6bcec8166bc05bc 100644
--- a/Source/wtf/Float32Array.h
+++ b/Source/wtf/Float32Array.h
@@ -40,10 +40,6 @@ public:
static inline PassRefPtr<Float32Array> createOrNull(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<Float32Array> createUninitialized(unsigned length);
-
using TypedArrayBase<float>::set;
void set(unsigned index, double value)
@@ -53,9 +49,6 @@ public:
TypedArrayBase<float>::data()[index] = static_cast<float>(value);
}
- inline PassRefPtr<Float32Array> subarray(int start) const;
- inline PassRefPtr<Float32Array> subarray(int start, int end) const;
-
virtual ViewType type() const override
{
return TypeFloat32;
@@ -89,26 +82,11 @@ PassRefPtr<Float32Array> Float32Array::createOrNull(unsigned length)
return TypedArrayBase<float>::createOrNull<Float32Array>(length);
}
-PassRefPtr<Float32Array> Float32Array::createUninitialized(unsigned length)
-{
- return TypedArrayBase<float>::createUninitialized<Float32Array>(length);
-}
-
Float32Array::Float32Array(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
: TypedArrayBase<float>(buffer, byteOffset, length)
{
}
-PassRefPtr<Float32Array> Float32Array::subarray(int start) const
-{
- return subarray(start, length());
-}
-
-PassRefPtr<Float32Array> Float32Array::subarray(int start, int end) const
-{
- return subarrayImpl<Float32Array>(start, end);
-}
-
} // namespace WTF
using WTF::Float32Array;
« no previous file with comments | « Source/wtf/ArrayBufferView.h ('k') | Source/wtf/Float64Array.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698